Re: [Boost-users] Regex boost 1.33 - (mingw/w32) linking
Sorry, I don't get the ordering issue you mention...
I used Dev-cpp for creating the makefile but that makes little difference. Anyway, here is the executed linking command line for the "grep" example:
g++.exe -D__DEBUG__ grep.o -o "regex_grep.exe" -L"lib" ../../../../bin/boost/libs/regex/build/libboost_regex.lib/mingw/debug/libboost_regex-mgw-d-1_33.lib ../../../../bin/boost/libs/program_options/build/libboost_program_options.lib/mingw/debug/libboost_program_options-mgw-d-1_33.lib -g3
Well there's something wrong at your end, because it works for me: cd libs/regex/example/grep g++ -I../../../.. -c -o grep.o grep.cpp g++ -o grep.exe grep.o 'C:\data\boost\develop\boost\bin\boost\libs\regex\build\libboost_regex.lib\mingw\debug\threading-multi\libboost_regex-mgw-mt-d-1_33.lib' 'C:\data\boost\develop\boost\bin\boost\libs\program_options\build\libboost_program_options.lib\mingw\debug\threading-multi\libboost_program_options-mgw-mt-d-1_33.lib' -g3 compiles and links cleanly with the current MinGW release. John.
participants (2)
-
Arno Mauhourat
-
John Maddock