c++ - Checking Boost install with MinGW -


i used mingw installation @ http://nuwen.net/mingw.html

i ran second.cpp test found at: http://tabreziqbal.wordpress.com/2006/03/16/how-to-test-c-boost-installation/ (i used correct commands run comments, g++ -o second second.cpp -lboost_filesystem)

i following error:

c:\users\user\projects\programming\c++\boosttest2>g++ -o second second.cpp -lboost_filesystem c:\users\user\appdata\local\temp\ccdlbkgy.o:second.cpp:(.text+0x102): undefined reference boost::system::generic_cat egory()' c:\users\user\appdata\local\temp\ccdlbkgy.o:second.cpp:(.text+0x10c): undefined reference toboost::system::generic_cat egory()' c:\users\user\appdata\local\temp\ccdlbkgy.o:second.cpp:(.text+0x116): undefined reference boost::system::system_cate gory()' c:\mingw\bin/ld.exe: c:\users\user\appdata\local\temp\ccdlbkgy.o: bad reloc address 0xe in section.text$_zn5boost6syst em14error_categoryd1ev[__zn5boost6system14error_categoryd1ev]' c:\mingw\bin/ld.exe: final link failed: invalid operation collect2.exe: error: ld returned 1 exit status

i know there's installation test feature of boost found on http://gcc.gnu.org/testing/testing-boost.html files aren't included distribution nuwen.net (so i'd have myself).

and appreciated - figure i'm screwing minor (i hope anyway).

thanks all!

it's not correct command, should link boost::system (errors undefined references boost::system::system_category). correct command g++ -o second second.cpp -lboost_system -lboost_filesystem


Comments