Article View: gnu.gcc.help
Article #42778HELP! gcc on one platform won't compile this code...
From: Richard Stanton
Date: Fri, 20 Oct 1995 00:00
Date: Fri, 20 Oct 1995 00:00
27 lines
1224 bytes
1224 bytes
gcc 2.7.0 has just been installed on a new machine here, and it nearly
works. However, it chokes on one piece of code that works fine on two
other machines (both also running gcc). Here's the code:
void fatal(char *error,...)
{
va_list args;
va_start(args, error); /* This is line 96 */
vfprintf(stderr, error, args);
va_end(args);
exit(FAILURE);
}
and here's the error message I get:
gcc -g -Wall -c parse.c -o parse.o
parse.c: In function `fatal':
parse.c:96: `__builtin_va_alist' undeclared (first use this function)
parse.c:96: (Each undeclared identifier is reported only once
parse.c:96: for each function it appears in.)
make: *** [parse.o] Error 1
Any idea what's going wrong? This compiles fine on two other machines.
Thanks for any help
Richard Stanton
Technical Details
Message-ID:
<468ujd$1e9@agate.berkeley.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,8fc88cfe5a71e110,start X-Google-Attributes: gid11318c,public From: stanton@haas.berkeley.edu (Richard Stanton) Subject: HELP! gcc on one platform won't compile this code... Date: 1995/10/20 Message-ID: <468ujd$1e9@agate.berkeley.edu> X-Deja-AN: 117854678 organization: University of California, Berkeley newsgroups: gnu.gcc.help