Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-21 01:03:28


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net