Hello,
I'm not good with VS, but I used to be able to compile a project in the "samples" folder. Now I'm getting an error:
3>LINK : fatal error C1047: Das Objekt oder die Bibliotheksdatei "C:\Dropbox\_lenovo\ReCap_SDK\25.1.1\Doc\samples\..\..\lib\AdskRcCompressUtils.lib" wurde von einer anderen Version des Compilers erstellt als andere Objekte wie "C:\Dropbox\_lenovo\ReCap_SDK\25.1.1\Doc\samples\build\int\x64\Release\RCPReaderSample\RCPReaderSample.obj". Kompilieren Sie alle Objekte und Bibliotheken mit dem gleichen Compiler neu.
3>LINK : fatal error LNK1257: Fehler bei Codegenerierung.
There seems to be a conflict between v142 and v143 versions.
Could you please check and suggest a solution to this problem?
Solved! Go to Solution.
Solved by zhaoyang_ma. Go to Solution.
Hi @360-for-you_com,
Thank you for reporting the error.
I have rebuilt ReCap SDK sample projects but have not encountered any error.
It looks to me the error could probably be due to the version of Visual Studio you are using. This normally happens when a library was built with a higher version of Visual Studio and then it is used to link with a component built with a lower version of Visual Studio.
The exact version of Visual Studio we used to build our ReCap SDK is 17.8.3. If your Visual Studio is lower than this version, could you please update it and try again?
Thanks,
Jing

Hi,
thanks for the quick response.
I use VS 2022 Community, version 17.10.5, MSVC v142 and MSVC v143.
SDK 24.0.2 requires MSVC v142 version and it worked for me.
But the configuration files in SDK 25.1.1.1 require v143 (RCPReaderSample.vcxproj, for example), but the core files are apparently compiled using v142.
I am working with python and am not at all familiar with C++, please excuse me if I am writing something stupid.
ReCap SDK 25.1.1 is built with VS 2022 v143. The same is true for all sample projects. While 24.0.2 was built with v142.

Hello,
Thanks for the clarification. It is great that you are using modern technology.
I checked again.
The problem occurs only with one of the files: "\lib\AdskRcCompressUtils.lib".
If I comment lines 37, 177, 180 in the RCPReaderSample.cpp file, everything compiles without problems.
Hello,
unfortunately, I don't understand how I can recompile the lib\AdskRcCompressUtils.lib
Unfortunately, this is an issue that we are unable to resolve. Microsoft has stated that "both the major and minor update numbers of the toolset used to compile the objects and libraries must match exactly." We cannot make sure users like you use the same version of Visual Studio as us when building the sample projects. We will discuss it internally and see what can be done.
Thanks,

Hi @360-for-you_com,
Could you have a try by disabling global optimization for the sample project you are trying to build?
Here is how to do this:
NOTE: as this will disable whole program optimization, it has an impact to speed.
I checked the speed on a test project and did not notice any degradation: for version 24.0.2 the time is 16.7s, for version 25.1.1 the time is 16.5s
Hi @360-for-you_com,
It is great to know that the suggestion works for you! Could you help click the "ACCEPT SOLUTION" button for the answer to accept it as a solution?
Can't find what you're looking for? Ask the community or share your knowledge.
