Link error building conan package with fast-cdr 2.1.0 + fast-dds 2.12.1
Hi some build configurations on conan center (using conan1 and Visual Studio on windows) do no longer link the package tests anymore since switching fast-cdr from 1.0.27 to 2.1.0 because of the following error (see https://github.com/conan-io/conan-center-index/pull/21302#issuecomment-1821849395):
LINK : fatal error LNK1104: cannot open file 'fastcdrd-2.1.lib' [C:\J2\w\prod-v1\bsr@2\cci-1b33e534\recipes\fast-dds\all\test_v1_package\build\43911f8562cfb0e989426eda12e8b564acfa7e7e\test_package\test_package.vcxproj]
libfastcdrd-2.1.lib(Exception.obj) : warning LNK4099: PDB 'libfastcdrd-2.1.pdb' was not found with 'libfastcdrd-2.1.lib(Exception.obj)' or at 'C:\J2\w\prod-v1\bsr@2\cci-1b33e534\recipes\fast-dds\all\test_v1_package\build\43911f8562cfb0e989426eda12e8b564acfa7e7e\bin\libfastcdrd-2.1.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr@2\cci-1b33e534\recipes\fast-dds\all\test_v1_package\build\43911f8562cfb0e989426eda12e8b564acfa7e7e\test_package\test_package.vcxproj]
Note that I am opening this ticket here is that the conan package for fast cdr simply collects the libs provided by cmake install. However, apparently the conan2 builds with Visual Studio seem to be working fine. I was wondering, where the two names fastcdrd-2.1.lib and libfastcdrd-2.1.lib come from? Maybe someone can help?
Hi @ma30002000, sorry for the inconvenience. Could you check if the error persists in the latest version v2.2.1?
According to our CONTRIBUTING.md guidelines, I am closing this issue due to inactivity. Please, feel free to reopen it if necessary.