Hi.
I’m trying to compile Alembic library but I’ve failed on linking even the most basic file: boost_trycompile.cpp
I’ve taken it out of the alembics build/trycompile directory and generated a solution files with CMAKE.
I’ve also built the boost libraries using multithreaded and static flags.
Now here is an error I get from Visual Studio 2010
1>------ Build started: Project: ZERO_CHECK, Configuration: RelWithDebInfo x64 ------
2>------ Build started: Project: boostTest, Configuration: RelWithDebInfo x64 ------
2> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.40219.01 for x64
2> Copyright (C) Microsoft Corporation. All rights reserved.
2>
2> cl /c /Zi /W3 /WX- /O2 /Ob1 /D _WIN64 /D NDEBUG /D "CMAKE_INTDIR=\"RelWithDebInfo\"" /D _MBCS /Gm- /EHsc /MT /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"boostTest.dir\RelWithDebInfo\\" /Fd"boostTest.dir\RelWithDebInfo\vcWindows7.1SDK.pdb" /Gd /TP /errorReport:prompt ..\boost_trycompile.cpp
2>
2> boost_trycompile.cpp
2>D:\alembic\out\boost\include\boost-1_42\boost/thread/future.hpp(411): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>boost_trycompile.obj : error LNK2019: unresolved external symbol "private: void __cdecl boost::thread::start_thread(void)" (?start_thread@thread@boost@@AEAAXXZ) referenced in function "public: __cdecl boost::thread::thread<void (__cdecl*)(void)>(void (__cdecl*)(void),struct boost::thread::dummy *)" (??$?0P6AXXZ@thread@boost@@QEAA@P6AXXZPEAUdummy@01@@Z)
2>boost_trycompile.obj : error LNK2019: unresolved external symbol "public: __cdecl boost::thread::~thread(void)" (??1thread@boost@@QEAA@XZ) referenced in function main
2>boost_trycompile.obj : error LNK2019: unresolved external symbol "public: void __cdecl boost::thread::join(void)" (?join@thread@boost@@QEAAXXZ) referenced in function main
2>D:\alembic\boost_trycompile\build\RelWithDebInfo\boostTest.exe : fatal error LNK1120: 3 unresolved externals
3>------ Skipped Build: Project: ALL_BUILD, Configuration: RelWithDebInfo x64 ------
3>Project not selected to build for this solution configuration
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========
The linker cannot compile .lib files of boost even if it can locate it.
I’ve ran out of ideas how to fix it, uncle google also could not give me a straight answer.
Help