autoconf and boost problem
hi
second problem of the day. I am compiling a program using autotools. however, in the comilation process the command that gets executed is:
g++ -std=c++0x -O2 -lboost_program_options -lboost_filesystem -lboost_system -lboost_regex -o Test Test-Test.o
which gives me the error stating undefined reference to boost::program_options ...
the reason is my boost libs are called before -o Test Test-Test.o if I do :
g++ -std=c++0x -O2 -o Test Test-Test.o -lboost_program_options -lboost_filesystem -lboost_system -lboost_regex
everything compiles with no problem.
The question is how to switch this and where exactly. Note the automake and autoconf is used here for compiling
thnx