This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: va_list undefined


I wrote:
>
>I have tried compiling a C++ file with both gcc 2.95.2 and gcc 2.95.3.  
>I get the following errors:
>
>/tgi/data/stephen/enroute/common/msg/src/msg_defs.h:467: type specifier omitted for 
>parameter
>/tgi/data/stephen/enroute/common/msg/src/msg_defs.h:663: type specifier omitted for 
>parameter
>/tgi/data/stephen/enroute/common/msg/src/msg_defs.h:663: parse error before `)'
>/tgi/data/stephen/enroute/common/msg/src/msg_defs.h:1128: type specifier omitted for 
>parameter
>/tgi/data/stephen/enroute/common/msg/src/msg_defs.h:1128: parse error before `,'
>
I forgot to include the header inclusion list.  Here it is:

In file included from /tgi/data/stephen/enroute/servers/gk/src/cmsg_defs.h:37,
                 from /tgi/data/stephen/enroute/servers/gk/msg/src/MSG_connection.h:31,
                 from /tgi/data/stephen/enroute/servers/gk/msg/src/MSG_gkSvrConn.h:26,
                 from GKP_cliChannel.h:35,
                 from GKP_cliChannel.cpp:34:

What's interesting is that if I #include <stdarg.h> in GKP_cliChannel.cpp or 
GKP_cliChannel.h, then it will work.  If I include the header file any deeper than that 
it won't.  Curious...

-- 
Stephen Rasku			E-mail:	stephen@tgivan.com
Senior Software Engineer	Web:	http://www.pop-star.net/
TGI Technologies


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]