My problem is a simple one - for some reason g++ does not find my libraries:
g++ -LC:\avatar\boost_1_42\lib\ -oboost-test main.o -lboost_filesystem-mgw34-mt-d
c:/qt/sdk_2010.02.1/mingw/mingw32/bin/ld.exe: cannot find -lboost_filesystem-mgw34-mt-d
However, in path
C:\avatar\boost_1_42\lib
there are following files (among other boost libs):
libboost_filesystem-mgw34-mt-1_42.lib
libboost_filesystem-mgw34-mt.lib
libboost_filesystem-mgw34-mt-d-1_42.lib
libboost_filesystem-mgw34-mt-d.lib
As far as I can tell, those parameters given to g++ should be enough to find the last file in the list above. They aren't, however, and I am out of ideas here.
My environment:
Windows XP
MinGW 4.4 that comes bundled with 2010.02.1 Qt SDK.
Eclipse 3.5 with CDT