I am getting the following errors after an upgrade. I cannot figure what is wrong with it. It should work as far as I can see.
$ make 2>&1 | head
g+
The solution involved changing the order of linkage, as per the man page. The thing is that it used to work fine with an older version of g++...
$ make
g++ -I/usr/include/boost -MM ./YYY.cc ./main.cc ./myClass.cc > buildfiles.d
g++ -ansi -O2 -Wall -I/usr/include/boost -c -o main.o main.cc
g++ -ansi -O2 -Wall -I/usr/include/boost -c -o myClass.o myClass.cc
g++ -o prog -ansi -O2 -Wall -I/usr/include/boost ./YYY.o ./main.o ./myClass.o -lstdc++ -L/usr/lib -lboost_program_options -lboost_thread