
21 Mar
2012
21 Mar
'12
10:31 p.m.
On 03/21/2012 08:31 PM, Dr. Bruce Elenbogen wrote:
When I try to use the date time class in Visual Studio 10, I get the following error LINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc100-mt-gd-1_48.lib' Is there anything I can do to fix this?
Mostly, you can use the header only parts of the library. Therefore, you have to define <define>BOOST_DATE_TIME_NO_LIB in the requirements in your Jamfile. This prevents the auto-linking of the date_time library. I think this is also possible with an appropriate preprocessor statement, but I do not know exactly how this works. Otherwise, you have to build the library and link against it.