04-08-2022 04:31 AM
All projects are in the same Workspace under CVI2017.
04-08-2022 06:49 AM - edited 04-08-2022 06:53 AM
cvistart.lib is normally in CVI2017/bin, not in the directory you mention. (No, that's correct)
Is it listed explicitly in the list of project files ? (it shouldn't) If so, remove it from the project.
Also check the build options and target settings of both lib and exe: 32 vs 64 bits, etc...
04-08-2022 07:42 AM
Is it listed explicitly in the list of project files ? (it shouldn't) If so, remove it from the project. >> It is not
Also check the build options and target settings of both lib and exe: 32 vs 64 bits, etc... >> All projects are generated as 32 bits lib and exe. Here is the target settings of the exe project :
I can't see nothing abnormal... I even tied to change few configurations in this windows with no success.
04-10-2022 07:19 AM
And you are absolutely sure that the compile settings for your static libraries is also set to be Release, and the directories you try to reference those static libraries in your main exe are actually set to the directory your static library build targets build the Release version of the static library to?
From the error message it seems like you are really pulling in Debug versions of your static libraries which will not be able to link to certain Debug symbols in your Release build exe.
04-11-2022 05:01 AM
Hello rolfk,
"And you are absolutely sure that the compile settings for your static libraries is also set to be Release" >> Yes, all projects are in release mode. Only the main project fails in release mode.
"and the directories you try to reference those static libraries in your main exe are actually set to the directory your static library build targets build the Release version of the static library to?" >> I guess... How can I check that ?
In the main project > include paths : I have all directories I should need.
04-11-2022 08:04 AM
The include path is what will be used to find header files. It has absolutely nothing to do with the actual link libraries which is a different directory setting.
04-11-2022 11:13 AM
Okay.. so how can I check that ?
04-14-2022 04:46 AM
Can I have an answer on my last question please ?
Thank you.
04-15-2022 05:31 AM
Are your libraries included in the project for the final executable that must link against them (In the IDE: Edit >> Add files to Project >> Library menu items)? This normally is enough for the compiler/linker to find them when needed.