Closed zethon closed 6 years ago
My problem was related to Boost's auto-linking. I'm not entirely sure how it's supposed to work but once I disabled the feature I was able to get the sample projects to compile just fine.
For reference, to disable auto-linking, I added the BOOST_ALL_NO_LIB
definition to my build. In CMake I simply added:
add_definitions(-DBOOST_ALL_NO_LIB)
I will submit a PR for this, but I'm not sure if auto-linking is purposely not disabled (ie. enabled) or not in this project.
I use static link to Boost-1.56 on VS2013, & there is no problem, you need to config in CMake:
set(Boost_USE_STATIC_LIBS ON) set(Boost_USE_MULTI_THREADED ON) set(Boost_USE_STATIC_RUNTIME ON)
This has been baffling me for a couple days now. I am only seeing this problem on Windows 10, as everything seems to work fine on macOS and Linux.
My CMake project looks great, when I configure everything seems to be found:
But then when I go to compile I get the following:
Now here's what's confusing me. Take a look at the linker command:
The error is telling me it's missing
libboost_system-vc140-mt-gd-1_65_1.lib
which isn't even listed! And then if I look at CMake, it confirms the linker:And if I look at the dependencies in Visual Studio I see:
I'm also seeing the same problem in a project where I'm attempting to use SWS. You can see the appveyor of a build that illustrates this problem here: https://ci.appveyor.com/project/zethon/arcc/build/0.1.91
Does anyone have any suggestions?