[Ace-users] [ace-users] Problem compiling with ACE when including ace/Timer_Heap.h
james.hodapp at gmail.com
Thu Feb 21 13:27:45 CST 2008
Doing the following did take care of the issue for me and allowed me
to compile my app successfully:
Thanks for the idea.
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