21 Sep
2004
21 Sep
'04
6:03 a.m.
Zhoujie Mao wrote:
LIBS = -L"D:/Dev-Cpp499/lib" -L"D:/boost/lib" -L"D:/boost/lib/libboost_date_time-gcc-1_31.a"
The last line is completely wrong. The value of the "-L" option should be a directory, not file. Try LIBS = -L"D:/Dev-Cpp499/lib" -L"D:/boost/lib" -L"D:/boost/lib" -lboost_date_time-gcc-1_31
I did include the libboost_date_time-gcc-1_31 but it did not work. ......
So you compile command should look something like:
g++ -I${BOOST_ROOT} -L{BOOST_LIB_ROOT} -l boost_date_time-gcc-d-1_31 YOURFILE.cpp -o whatever.exe
Does you command line now tools the way Jeff said? And really, you should take the time to learn the tools you use. In particular, -L and -l options are documented in the gcc manual. - Volodya