date_time giving undefined references

Hello,
I am trying to compile a simple example using the parsers and formatters
of the date_time library using g++ under Cygwin. I can successfully
build other boost examples passing only the include directory to g++,
but all date_time ones that I have tried fail.
#include &)]+0x3
8): undefined reference to
`boost::gregorian::greg_month::as_short_string() cons
t'
/cygdrive/c/DOCUME~1/USER/LOCALS~1/Temp/cc2nXx0a.o:example.cpp:(.text$_Z
N5boos
t9date_time15month_formatterINS_9gregorian10greg_monthENS0_13simple_form
atIcEEcE
12format_monthERKS3_RSo[boost::date_time::month_formatter collect2: ld returned 1 exit status Any clue what is going wrong here?
Thanks!
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.

Hi! Hane, Christopher A schrieb:
I can successfully build other boost examples passing only the include directory to g++, but all date_time ones that I have tried fail. [snip] Any clue what is going wrong here?
Yes. You need more sources. There is a lib/date_time/src... folder containing .cpp files which need to be compiled and linked to the program. Usually these sources are already compiled and linked into a library. But in your case I guess they are not (yet :) ) See the "Getting Started Guide" here http://www.boost.org/doc/libs/1_35_0/more/getting_started/index.html Frank
participants (2)
-
Frank Birbacher
-
Hane, Christopher A