|
Boost Users : |
From: Antonio Coralles (noche.suapie_at_[hidden])
Date: 2005-01-18 13:51:09
[snip]
> boost-users_at_[hidden] <mailto:boost-users_at_[hidden]> wrote:
>> "Antonio Coralles" <noche.suapie_at_[hidden]
> <mailto:noche.suapie_at_[hidden]> <mailto:>> wrote in message
>> news:41EBE2F0.7020003_at_reflex.at...
>>> i'm writing on a programm which uses the boost date_time library
>>> [boost-version = 1.32.0] heavily; while i normally programm in linux
>> using
>>> gcc-3.3.5 i also need to compile my program in windows from time to
>> time.
>>> because it makes life easier with another library [gtkmm-2.4.8] i'm
>> using
>>> mingw-3.4.2; everthing worked fine (my code contains about 10 000 lines
>>> using boost_date_time) until i started using a
>>> boost::gregorian::year_based_generator. while gcc-3.3.5 in liux
>> accepts my
>>> code without even a single warning [with -Wall], mingw-3.4.2 complains -
>>> it seems that the compiler has problems with year_based_generator:
>
[snip]
[snip]
>> Are you able to build the print_holidays example? It uses pointers to
>> year_base_generators.
[snip]
>
> i'll try that in the next time and post the results of this experiment;
> be the way, i've now compiled my app in win succesfully by putting
> evrything which is somehow connected to year_based_generator into
> #ifndef WIN32_COMPILE .... #endif. that isn't too bad for the moment,
> because i don't use these methods by now in
> other parts of my prog [except unit tests]. but sooner or later i will ...
>
[snip]
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.)
print_holidays.cpp:43: error: template argument 1 is invalid
print_holidays.cpp:43: error: template argument 2 is invalid
print_holidays.cpp:43: error: invalid type in declaration before ';' token
print_holidays.cpp:44: error: `push_back' has not been declared
print_holidays.cpp:44: error: request for member of non-aggregate type
before '( ' token
print_holidays.cpp:45: error: `push_back' has not been declared
print_holidays.cpp:45: error: request for member of non-aggregate type
before '( ' token
print_holidays.cpp:46: error: `push_back' has not been declared
print_holidays.cpp:46: error: request for member of non-aggregate type
before '( ' token
print_holidays.cpp:53: error: `push_back' has not been declared
print_holidays.cpp:53: error: request for member of non-aggregate type
before '( ' token
print_holidays.cpp:55: error: `push_back' has not been declared
print_holidays.cpp:55: error: request for member of non-aggregate type
before '( ' token
print_holidays.cpp:57: error: `push_back' has not been declared
print_holidays.cpp:57: error: request for member of non-aggregate type
before '( ' token
print_holidays.cpp:59: error: `push_back' has not been declared
print_holidays.cpp:59: error: request for member of non-aggregate type
before '( ' token
print_holidays.cpp:64: error: template argument 1 is invalid
print_holidays.cpp:64: error: template argument 2 is invalid
print_holidays.cpp:64: error: expected `;' before '::' token
print_holidays.cpp:65: error: `it' undeclared (first use this function)
print_holidays.cpp:65: error: `end' has not been declared
print_holidays.cpp:65: error: request for member of non-aggregate type
before '( ' token
' token
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*.
antonio
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