Boost logo

Boost Users :

From: Marcio Del'Valle (mjdelvalle_at_[hidden])
Date: 2002-10-25 18:35:57


Ok, here goes a newbie one.

I've already built boost 1.29.0, and I've also managed to build
boost::date_time (libboost_date_time) using msvc6.0. I've added the .lib
file to my project, included it in my Project>>Settings>>Object/library
modules list and I've got the header path ok too.

Why do I keep receiving the following Link Error message?

LNK2001: unresolved external symbol "public: static unsigned long __cdecl
boost::date_time::gregorian_calendar_base<...

I really can't find a reason, besides the fact that this is supposed to be a
runtime link library.

Marcio Araujo

-----Original Message-----
From: Jeff Garland [mailto:jeff_at_[hidden]]
Sent: Tuesday, October 15, 2002 3:40 PM
To: Boost-Users_at_[hidden]
Subject: RE: [Boost-Users] Date_Time undefined reference

David wrote:
> The linker is complaining about an undefined reference to
> boost::gregorian::greg_month::as_short_string() const and
> boost::gregorian::greg_month::as_long_string() const
>
> using g++ 3.0.4
> g++ test.cpp -o test -DDATE_TIME_INLINE

These get built into the libboost_date_time.a which needs to be included in
your link line. So add something like:

 -L
BOOST_TOP/libs/date_time/build/bin/libboost_date_time.a/gcc/debug/runtime-li
nk-dynamic -lboost_date_time

Feel free to move the library somewhere with a shorter path :-)

If you haven't built the library you will need to go /libs/date_time/build
and run bjam to produce the library. Just microseconds
after 1.29.0 was released I realized that I forgot to update the top-level
boost Jamfile....

Jeff

Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

Esta mensagem foi verificada pelo E-mail Protegido Terra.
Scan engine: VirusScan / Atualizado em 09/10/2002 / Versão: 1.3.13
Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/


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