07-12-2016 10:43 AM
We have Installed Lab Windows (CVI 2015) and trying to Link in Visual Studio.
We have added the below Library Directories in Visual Studio for Linking to NI Libraries.
C:\Program Files\National Instruments\CVI2015\bin\msvc
C:\Program Files\National Instruments\CVI2015\extlib
But we are getting the below Linking errors:
1>PostProc.obj : error LNK2019: unresolved external symbol _FindPattern@24 referenced in function _bGetLogTimeStamp
1>PostProc.obj : error LNK2019: unresolved external symbol _CVI_CloseFile@4 referenced in function _i32GetVDBMsgErrCount
1>PostProc.obj : error LNK2019: unresolved external symbol _ReadLine@12 referenced in function _i32GetVDBMsgErrCount
1>PostProc.obj : error LNK2019: unresolved external symbol _CVI_ReadFile@12 referenced in function _i32GetVDBMsgErrCount
1>PostProc.obj : error LNK2019: unresolved external symbol _CVI_OpenFile@16 referenced in function _i32GetVDBMsgErrCount
1>PostProc.obj : error LNK2019: unresolved external symbol _GetFileInfo@8 referenced in function _i32GetVDBMsgErrCount
1>C:\KTR\MKS_SI\VDB_CRC_Post_Proc\Debug\VDB_CRC_Post_Proc.exe : fatal error LNK1120: 6 unresolved externals
Can you please help us in understand how to link them and resolve this.
07-13-2016 04:04 PM - edited 07-13-2016 04:05 PM
This help page guides you in configuring an external compiler in order to find CVI libraries.
You can find it in Programmer Reference >> Compiler/Linker Issues within CVI help.