This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: va_list undefined
- To: gcc-help at gcc dot gnu dot org
- Subject: Re: va_list undefined
- From: Stephen Rasku <stephen at tgivan dot com>
- Date: Fri, 1 Jun 2001 11:04:31 -0700 (PDT)
- Cc: gcc-bugs at gcc dot gnu dot org
- Reply-To: Stephen Rasku <stephen at tgivan dot com>
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