Boost::Archive causing weird linker error.
Posted
by Dallin Wellington
on Stack Overflow
See other posts from Stack Overflow
or by Dallin Wellington
Published on 2009-10-31T22:31:50Z
Indexed on
2010/04/21
11:53 UTC
Read the original article
Hit count: 279
Does anyone have a clue why those two lines would cause that linker error?
std::ifstream ifs("filename.file");
boost::archive::binary_iarchive iarchv( ifs );
Error 8 fatal error LNK1104: cannot open file
'F:\dev\project\build\win32-unit\tests\Debug\framework_core_tests.lib'
ramework_core_tests
framework_core_tests
The same happens with any Boost::Archive type.
Its trying to link against a library of the same name as my executable for some reason when that project doesn't nor never existed and is not defined as a library to link against in my project files.
© Stack Overflow or respective owner