Boost logo

Boost Users :

From: John Smith (jsmith1975_at_[hidden])
Date: 2005-08-03 09:40:54


I have been trying to use Boost Date_Time library with my code. I used
boostjam to compile the source; the command used was:
bjam -s"TOOLS=vc-7_1" --with-date_time install.
The following libraries were built (among others):
    boost_date_time-vc71-mt-1_32.dll 45,056bytes
    boost_date_time-vc71-mt-1_32.lib 26,164bytes
    libboost_date_time-vc71-mt-1_32.lib 521,764bytes

    boost_date_time-vc71-mt-gd-1_32.dll 77,824bytes
    boost_date_time-vc71-mt-gd-1_32.lib 26,312bytes
    libboost_date_time-vc71-mt-gd-1_32.lib 1,380,694bytes

My project is setup as follows:
Runtime Library: Multi-threaded Debug DLL (/MDd)
Additional Include Directories: $(BOOSTHOME)\include\boost-1_32
Additional Library Directories: $(BOOSTHOME)\lib
Additional Dependencies: boost_date_time-vc71-mt-gd-1_32.lib

Using the above setup I could only link if the static library
(libboost_date_time-vc71-mt-gd-1_32.lib) was also available. If not, I kept
getting
LINK : fatal error LNK1104: cannot open file
'libboost_date_time-vc71-mt-gd-1_32.lib'
However, when this file is available, I am able to link and use the DLL
(checked DLL usage using depends.exe).

Does this make sense? I was under the impression that I should only need the
import library. Also, how does it know the name if the library?

Thanks.


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