and I just included boost.asio and these issues were reported in Qt creator when building :
cannot find -llibboost_system-vc100-mt-1_49.lib
collect2: ld returned 1 exit status
yes the library exists in stage/lib
I added those lines to my project and I have these errors when building :
In function `_static_initialization_and_destruction_0':
undefined reference to `boost::system::generic_category()'
undefined reference to `boost::system::generic_category()'
undefined reference to `boost::system::generic_category()'
undefined reference to `boost::system::generic_category()'
undefined reference to `WSAStartup@8'
undefined reference to `WSACleanup@0'
collect2: ld returned 1 exit status
When you specify a library file name, you don't write its extension (.dll, .lib, .a,...). You should just write whether the linking is static or dynamic, and the extensions are found automatically.
Try getting your makefile to link statically to boost by:
CONFIG += static
BTW: It's way better if you use relative paths rather than absolute paths. It's not professional at all to write a whole absolute path to link your libraries. Try to put all 3rd-party libraries in a single folder parallel to your project source, and link to them with a relative path. That will make stuff easier for you. And don't use long file/folder names, so that you could avoid mistyping/misinterpreting stuff.
coder777@
oh my God !! I think that is the point !!
I built them using these commands:
bootstrap
.\b2
according to what boost documentation says :
If you wish to build from source with Visual C++, you can use a simple build procedure described in this section. Open the command prompt and change your current directory to the Boost root directory. Then, type the following commands:
bootstrap
.\b2
--------------------------------------
How should I build them with minGW ??
I finally made it .The problem was what coder777 noticed .my boost Binary libraries were built with visual c++ while it should have been built using minGW .