I'm getting the error message "Linker Tools Error LNK1104" can't find libCGAL-vc140-mt-4.14-I-900.lib"
I'm using VCPKG with Visual Studio and linker flag /MD or /MDd. The same setup worked with CGAL 4.13. The error came after the update to 4.14 with VCPKG.
Even a small new CGAL program will not be translated. I tried debug/release mode with x64.
Question one:
Do you use CMake or the Visual Studio integration?
Question two:
Which triplet are you using? x64-windows? Is cgal:x64-windows installed (and not maybe the x86-windows triplet)?
I use the Visual Studio integration.
I installed cgal:x64-windows 4.14-1 and cgal:x86-windows 4.14-1 and boost:x64 /booxt:x86
The error message is: cannot open source file "CGAL/compiler_config.h" config.h
Do I have to do anything after the installation (vcpkg install cgal:x64-windows)?
Vcpkg will install CGAL as "header only".
I found that I have to add the CGAL_HEADER_ONLY preprocessor definition in Visual Studio: "Properties - C/C++ - Preprocessor", then it should be built correctly.
Hi @JoelMontana, thanks for posting this issue.
Here is vcpkg integrate function usage:
vcpkg integrate project, and then restart Visual Studio. vcpkg integrate install, and then set CMAKE_TOOLCHAIN_FILE=vcpkg_pathvcpkgscriptsbuildsystemsvcpkg.cmake by CMake command.CGAL_HEADER_ONLY to Preprocessor Definitions or define this macro before include cgal headers.Thanks for posting this issue. Please open a new issue if this is still a problem for you.
Most helpful comment
Vcpkg will install CGAL as "header only".
I found that I have to add the
CGAL_HEADER_ONLYpreprocessor definition in Visual Studio: "Properties - C/C++ - Preprocessor", then it should be built correctly.