I am working on a project of boost unit testing framework using QT creator. I have written a small test program and trying to link "libboost_unit_test_framework-vc100-mt-gd-1_56.lib". This library is present at specified path. But program fails to compile giving said linking error.
I searched on net and found that, error should go with "#define BOOST_ALL_NO_LIB". But then, I am getting below error:
main.obj:-1: error: LNK2019: unresolved external symbol "class boost::unit_test::test_suite * __cdecl init_unit_test_suite(int,char * * const)" (?init_unit_test_suite@@YAPAVtest_suite@unit_test@boost@@HQAPAD@Z) referenced in function _main
The above function is a part of "libboost_unit_test_framework-vc100-mt-gd-1_56.lib".
I have written same unit tests using VS 2010 and with the same boost libraries. The program worked properly with expected behavior.
What could be possibly going wrong with the usage of boost on QT ? Please help !
-Thanks