[Ace-users] [ace-users] Problem compiling with ACE when including ace/Timer_Heap.h

Jim Hodapp james.hodapp at gmail.com
Thu Feb 21 13:17:40 CST 2008

ACE_VERSION: 5.4.7 (as packaged with Ubuntu Linux)
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:17,"  
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?

Thanks much!


More information about the Ace-users mailing list