Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
we are doing ENOVIA to CREO Integration.After installing ConnectorForCreoandProEngineerClient.we got userExists folder.Inside UserExists Folder buildPe.bat file is there.
when running buildPe.bat file i am getting these link errors.Please help me to resolve this.
userExits_pe.c
Creating library plat-win64\userExits_pe.lib and object plat-win64\userExits_pe.exp
userExits_pe.obj : error LNK2019: unresolved external symbol _ProArrayObjectAdd referenced in function _UE_ConnectPre
userExits_pe.obj : error LNK2019: unresolved external symbol _ProValuedataStringSet referenced in function _UE_ConnectPre
userExits_pe.obj : error LNK2019: unresolved external symbol _ProStringToWstring referenced in function _UE_ConnectPre
userExits_pe.obj : error LNK2019: unresolved external symbol _debugPrint referenced in function _UE_ConnectPre
userExits_pe.obj : error LNK2019: unresolved external symbol _mxif_Free referenced in function _UE_ConnectPost
userExits_pe.obj : error LNK2019: unresolved external symbol _mxif_MqlCommand referenced in function _UE_ConnectPost
userExits_pe.obj : error LNK2019: unresolved external symbol _ProMdlNameGet referenced in function _UE_CheckinDialogPre
userExits_pe.obj : error LNK2019: unresolved external symbol _ProMdlCurrentGet referenced in function _UE_CheckinDialogPre
plat-win64\userExits_pe.dll : fatal error LNK1120: 8 unresolved externals
************************************
*** userExits dll build failed!! ***
************************************
Press any key to continue . . .
My buildPe.bat file is
@echo off
rem ****************************************************************************************
rem Please Set appropriate paths for UG install dir, Visual Studio dir and Microsoft SDK dir
rem ****************************************************************************************
set PRO_MACHINE_TYPE=x86e_win64
set PROTOOL_SRC=C:\Program Files\PTC\Creo 2.0\Common Files\M130\protoolkit
set PROTOOL_SYS=%PROTOOL_SRC%\%PRO_MACHINE_TYPE%
set USER_EXISTS=C:\ConnectorForPRO\userexits
set VS_DIR=c:\Program Files (x86)\Microsoft Visual Studio 10.0
set SDK_DIR=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A
set PATH=%VS_DIR%\VC\bin;%VS_DIR%\Common7\IDE;%PROTOOL_SRC%\includes;%PROTOOL_SRC%\protk_appls\includes;
set LIB=%VS_DIR%\VC\lib;%SDK_DIR%\Lib;%PROTOOL_SRC%\includes;%PROTOOL_SRC%\protk_appls\includes;%USER_EXISTS%\userExits;
set INCLUDE=%VS_DIR%\VC\include;%PROTOOL_SRC%\includes;%PROTOOL_SRC%\protk_appls\includes;
mkdir .\plat-win64
CL.exe /I"%PROTOOL_SRC%\includes" /I"%PROTOOL_SRC%\protk_appls\includes" /I..\..\MxInterface /nologo /W2 /O2 /c /Fp /DWIN32 /D_WINDOWS /D_MBCS /D_USRDLL /DNDEBUG /Dhypot=_hypot /DMSB_LEFT /Dfar=ptc_far /Dhuge=p_huge /Dnear=p_near /c /W2 /D_X86_=1 /D_WSTDIO_DEFINED /DPRO_MACHINE=29 /DPRO_OS=4 /Foplat-win64\userExits_pe.obj userExits_pe.c
link.exe /ERRORREPORT:PROMPT /OUT:"plat-win64\userExits_pe.dll" /INCREMENTAL:NO /NOLOGO advapi32.lib comdlg32.lib gdi32.lib kernel32.lib mpr.lib libcmt.lib psapi.lib netapi32.lib ole32.lib oleaut32.lib shell32.lib user32.lib uuid.lib ws2_32.lib winspool.lib wsock32.lib MxInterface.lib "%PROTOOL_SYS%\obj\protk_dll.lib" "%PROTOOL_SYS%\obj\protkmd.lib" /SUBSYSTEM:WINDOWS /DLL "plat-win64\userExits_pe.obj"
if exist ".\plat-win64\userExits_pe.dll" (
echo ********************************************
echo *** userExits dll created successfully!! ***
echo ********************************************
) else (
echo ************************************
echo *** userExits dll build failed!! ***
echo ************************************
)
pause