Boost Users :
From: Bart (bartmann_nsd_at_[hidden])
Date: 2005-01-18 19:19:56
On Tue, 18 Jan 2005 19:51:09 +0100, Antonio Coralles wrote:
> i've now tried to compile the print_holidays example: this is what i got:
> $ g++ -lboost_date_time-mgw-1_32 print_holidays.cpp -o test.exe
> print_holidays.cpp: In function `int main()':
> print_holidays.cpp:43: error: `year_based_generator' undeclared (first
> use this function)
> print_holidays.cpp:43: error: (Each undeclared identifier is reported
> only once for each function
> it appears in.)
> i've also tried to compile some other examples - they work, like the
> rest of my program; maybe there is something wrong with my installation
> - but i don't know what. it is also really strange that mingw accepts
> partial_date [in my app] which is derived from year_based_generator but
> refuses to work with year_based_generator*.
I tried upgrading to gcc/g++ 3.4 (I extracted these into my original mingw
installation) and am unable to duplicate your errors.
If you can spare the time, try downloading a fresh boost_1_32_0 archive
and attempting a print_holidays compile with that source tree. I'm
wondering if your source tree may have been corrupted somehow.
Sorry I can't be of more help,
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