I'm trying to compile a full independent static executable file with MS Visual C++ - Express.
I'm use the boost libraries, which are also compiled with static linking:
b2 --toolset=msvc-10.0 --link=static runtime-link=static variant=release threading=multi
In Visual Studio I have these settings:
General: MFC use static library
VC++ Directories -> Include Directory: PATH TO BOOST FILES
C/C++ -> Code Generation: Runtime Library Muthithreaded
C/C++ -> Precompiled Header: Don't use
Linker-> Input: Additional dependencies: FULL PATH TO ALL USED BOOST LIB FILES (C:\boost_1_61_0\stage\lib\libboost_system-vc100-mt-gd-1_61.lib....)
I can compile a dynamicly linked executable, but if I try a static executable I receive this error:
1>LINK : fatal error LNK1104: cannot open file 'libboost_system-vc100-mt-sgd-1_61.lib'
Where is the problem?