Build Issue(s) with Boost Library

• Hello all,

I found out about Qt whilst doing research into C++ GUI Libraries - after a lot of research (YT Videos & Qt Books), I installed the Qt Creator. Qt itself seems to be working fine.

I need to use the Boost Libraries for my application, and used the following guide to install it:
http://cpp-qt-mac-win.blogspot.in/2011/10/qt-boost-for-beginners-step-by-step.html
The quick test provided at the above website, shows Boost & Qt working together.

When implementing the boost::serialization functions and trying to run the program I get the following errors:

With:
@
INCLUDEPATH += C:/boost/boost_1_53_0
LIBS += -LC:/boost_lib/boost/bin.v2/libs
@

I get "66 Issues" starting with:
@
" C:\boost\boost_1_53_0\boost\archive\text_oarchive.hpp:100: error: undefined reference to boost::archive::text_oarchive_implboost::archive::text_oarchive::text_oarchive_impl(std::ostream&, unsigned int)' "
@

^ Compile output starts:
@
debug/main.o: In function ZN5boost7archive13text_oarchiveC1ERSoj': C:\Users\<dir>\Application\build-UCLDataManagement_v002-Desktop_Qt_5_0_2_MinGW_32bit-Debug/../../../../../../boost/boost_1_53_0/boost/archive/text_oarchive.hpp:100: undefined reference to`boost::archive::text_oarchive_implboost::archive::text_oarchive::text_oarchive_impl(std::ostream&, unsigned int)'
@

With:
@
INCLUDEPATH += C:/boost/boost_1_53_0
LIBS += C:/boost_lib/boost/bin.v2/libs
@

I get "2 Issues":
@
:-1: error: cannot find C:/boost_lib/boost/bin.v2/libs: Permission denied
collect2.exe:-1: error: error: ld returned 1 exit status
^ Compile output:
...../../i686-w64-mingw32/bin/ld.exe: cannot find C:/boost_lib/boost/bin.v2/libs: Permission denied
@

[code wrappings updated, koahnig]

I've been trolling the internet for almost 2 days now trying to find a solution. Any help/suggestions/requests would be appreciated. Thank you for your time in advance.

-B

• welcome to devnet

I never worked with serialization, but apparently this is one of the boost parts which is not only template based.

You have added already the path to where the boost libs are (should be "C:/boost_lib/boost/bin.v2/libs"), but you need to specify the name of the lib as well.
This "example":http://qt-project.org/doc/qt-4.8/qmake-project-files.html#declaring-other-libraries declares for instance:
the path of the libs through "-L" to be : /usr/local/lib
and the lib is through "-l" : math
This is a linux example, but can use the same for windows. E.g.
the path of the libs through "-L" to be : c:/user/local/lib
and the lib is through "-l" : math

• Working now, Thanks