|
Boost Users : |
Subject: Re: [Boost-users] Boost 1.56 with QT creator, âLNK1104: cannot open file 'libboost_unit_test_framework-vc100-mt-gd-1_56.lib'â
From: Lars Viklund (zao_at_[hidden])
Date: 2014-10-17 11:14:29
On Fri, Oct 17, 2014 at 04:04:36PM +0200, Manuel Schiller wrote:
> Hi,
>
> you say are using QtCreator, but you do not state which OS you are using.
> So I guess you are still on windows, and I also guess QtCreator uses mingw
> as the compiler instead of Visual Studio.
Qt Creator can, and in his case does, support using MSVC as the compiler
and CDB as the debugger.
The error shown is from the MS link.exe.
The underlying cause is likely a difference in the flags passed to the
compiler and/or linker by his build system, which may differ from what
you get when building with MSBuild solutions.
> If this is true, then you need to compile boost using mingw in order to be
> able to properly link against the boost libraries.
Boost list policy mandates in-line bottom-post replies, btw.
>
> 2014-10-17 15:22 GMT+02:00 Kavita <kavita.yele_at_[hidden]>:
>
> > Hello,
> >
> > 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_at_unit_test_at_boost@@HQAPAD_at_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
> >
> > _______________________________________________
> > Boost-users mailing list
> > Boost-users_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/boost-users
> >
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Lars Viklund | zao_at_[hidden]
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net