Subject: Problems with compiling any g++ sources...
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Freeman P. Pascal KD4YLZ <pascal@titus.verity.com>
List: netbsd-bugs
Date: 12/05/1993 15:56:00
I'm getting the following compiler errors from g++ anytime I compile
something that includes /usr/include/stdio.h (from /usr/include/g++/stdio.h)
(Lines split for readablity)
> In file included from /usr/include/g++/stdio.h:69, from /usr2/current/src/
> gnu/usr.bin/groff/libgroff/assert.cc:20:
> /usr/include/stdio.h:274: unrecognized format specifier for `int snprintf
> (char *, unsigned int, const char *, ...)'
> /usr/include/stdio.h:276: unrecognized format specifier for `int vsnprintf
> (char *, unsigned int, const char *, char *)'
> /usr/include/stdio.h:278: unrecognized format specifier for `int vscanf
> (const char *, char *)'
> /usr/include/stdio.h:280: unrecognized format specifier for `int vsscanf
> (const char *, const char *, char *)'
It's either the __attribute__ or the "format" on in each defintion. I've
never seen declarations like this before. Although, I would expect g++
to grok this if gcc does. After all, it's the same compiler running in
a different mode.
Any ideas? Has anyone else see this?
-Freeman
------------------------------------------------------------------------------