
Yitzhak Sapir wrote:
The above command lines should be:
g++ -I sources/3rdParty/boost -I sources/3rdParty/local-config/linux/ g++ -Lsources/3rdParty/releases/linux/debug -lboost_regex test.cpp g++ [works] -I sources/3rdParty/boost -I g++ sources/3rdParty/local-config/linux/ g++ -Lsources/3rdParty/releases/linux/release -lboost_regex test.cpp g++ [gives above error]
I guess my mail program (Outlook) reduplicates the > g++ on every new line when it splits up the lines. Sorry about this.
g++ -I sources/3rdParty/boost -I sources/3rdParty/local-config/linux/ -Lsources/3rdParty/releases/linux/debug -lboost_regex test.cpp [works]
g++ -I sources/3rdParty/boost -I sources/3rdParty/local-config/linux/ -Lsources/3rdParty/releases/linux/release -lboost_regex test.cpp [gives above error]
Well.... the obvious mistake is that the library name must occur *after* the source file that uses it. Does this help? John.