[Ace-users] [ace-users] Problem compiling with ACE when including ace/Timer_Heap.h
james.hodapp at gmail.com
Thu Feb 21 13:25:32 CST 2008
Yes, I don't know why Ubuntu packages such an old version, but then
again other distros don't even seem to package ACE at all in main
repositories. It'd be awesome for Ubuntu to contain the latest ACE
possible. Maybe I'll have to investigate who does ACE packaging and
why it's so behind in version number. I'll try and undefine the
timeout symbol and see if that takes care of it. Thanks.
On Feb 21, 2008, at 2:23 PM, Johnny Willemsen wrote:
>> ACE_VERSION: 5.4.7 (as packaged with Ubuntu Linux)
> This is really an old version. I was not aware that Ubuntu has
> ACE/TAO, they then seem to package very old stuff.
>> OS: Ubuntu Linux v7.10
>> COMPILER: g++ v4.1.2
>> I am trying to include 2 ACE files so I can use the Timer Queues
>> functionality of ACE. The two files are:
>> 1. ace/Timer_Queue_Adapters.h
>> 2. ace/Timer_Heap.h
>> If I try and include the Timer_Heap.h (or any of the other concrete
>> ACE_Timer_Queue class header files), I get the following compiler
>> error from g++:
>> <3 sets of "In file included from /usr/include/ace/Timer_Heap_T.h:
>> similar messages...>
>> /usr/include/ace/Timer_Queue_T.cpp:399:91: error: macro "timeout"
>> passed 5 arguments, but takes just 1
>> /usr/include/ace/Timer_Queue_T.cpp:395: error: invalid function
>> I checked out line 395 and 399 which is for the timeout member
>> function. There are 5 parameters defined there. It seems to me like
>> the compiler is confused about the prototype of the timeout member
>> function from somewhere else, but I'm not sure what or where. Any
>> thoughts about what could be causing this?
> I think somewhere a define called timeout is defined. Try to undefine
> timeout before including these files, search who is defining timeout.
More information about the Ace-users