|
Boost Users : |
From: Nick Toze
Date: 2003-01-07 05:38:54
I got that too. I tried to fix it by moving the .cpp files from
boost_1_29_0\libs\date_time\src\gregorian to
boost_1_29_0\boost\date_time\gregorian. And it seemed like I also
needed to rename the .ipp file in boost_1_29_0\boost\date_time to be
.cpp. Don't know for sure if it worked because I now get: fatal error
C1063. Too many templates I guess :(
--- In Boost-Users_at_[hidden], "Keno" <keno_at_c...> wrote:
> Greets all,
>
> I'm in need of using the Date-Time library but I'm encountering a few
> issues. I tried compiling the following simple code:
>
> -----------------
>
> #include <boost/date_time/gregorian/gregorian.hpp>
> #include <iostream>
> using namespace boost::gregorian;
>
> int main()
> {
> date birthday(1979,3,26);
>
> return 0;
> }
>
> -------------------
>
> and got the following error(s):
>
> --------------------Configuration: boost_date - Win32
> Debug--------------------
> Compiling...
> test_date.cpp
> d:\softdev\vstudio6\vc98\include\new(35) : warning C4290: C++ Exception
> Specification ignored
> Linking...
> test_date.obj : error LNK2001: unresolved external symbol "public:
static
> unsigned long __cdecl boost::date_time::gregorian_calendar_base<struct
> boost::date_time::year_month_day_base<class
> boost::gregorian::greg_year,class boost::gregorian::greg_mon
> th,class boost::gregorian::greg_day>,unsigned long>::day_number(struct
> boost::date_time::year_month_day_base<class
> boost::gregorian::greg_year,class boost::gregorian::greg_month,class
> boost::gregorian::greg_day> const &)" (?day_number@?$gregorian_ca
>
lendar_base_at_U?$year_month_day_base_at_Vgreg_year_at_gregorian@boost@@Vgreg_month_at_2
>
3_at_Vgreg_day_at_23@@date_time_at_boost@@K_at_date_time_at_boost@@SAKABU?$year_month_day_b
> ase_at_Vgreg_year_at_gregorian@boost@@Vgreg_month_at_23@Vgreg_day_at_23@@23@@Z)
> Debug/boost_date.exe : fatal error LNK1120: 1 unresolved externals
> Error executing link.exe.
>
> boost_date.exe - 2 error(s), 1 warning(s)
>
> -------------------------------
>
> Any clues as to what could be happening here folks?? I'm using MSVC6
with
> SP5 + STLPort 4.5.3 on WinXP
>
> .: Keno :.
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