Hello,<div><br></div><div>I&#39;m using CMake generated Visual Studio solution, and I added boost with find_package(Boost), </div><div>before that I used commands: set(Boost_USE_STATIC_LIBS ON) set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_RUNTIME OFF)</div>
<div>after that I used commands: include_directories(${Boost_INCLUDE_DIR}) add_executable( MyProject src/main.cpp)</div><div><br></div><div>Because automatic linking is used on Visual Studio when including Boost, and it typically use static libraries, I try not to conflict with that. But I get the error:</div>
<div>LINK : fatal error LNK1104: cannot open file &#39;libboost_thread-vc100-mt-gd-1_47.lib&#39;</div><div><br></div><div>I installed pre-compiled binary Boost with the installer provided by BoostPro Computing, and I checked to find that I do have</div>
<div>libboost_thread-vc100-mt-gd-1_47.lib, libboost_thread-vc100-mt-s-1_47.lib libboost_thread-vc100-mt-sgd-1_47.lib libboost_thread-vc100-mt-1_47.lib in C:\Program Files\boost\boost_1_47\lib</div><div><br></div><div>I also output messages to find that Boost_FOUND=TRUE Boost_LIBRARY_DIRS=C:/Program Files/boost/boost_1_47/lib Boost_INCLUDE_DIRS=C:/Program Files/boost/boost_1_47</div>
<div><br></div><div>So I&#39;m confused why it has the link error. I tried with dynamically linking too, it can&#39;t find the .dll files at runtime either, but again they exist right there in the directory I installed boost. Could anyone help me understand where the problem is?</div>
<div><div><br></div><div>Thanks!</div>-- <br>Sophie Wang<div><a href="http://www.sophiehuiwang.com" target="_blank">www.sophiehuiwang.com</a></div><br>
</div>