Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'__buitin_va_list undeclared' compile error

Status
Not open for further replies.

brianon

Programmer
Joined
Feb 6, 2002
Messages
22
Location
IE
Hi,

I'm using gcc 2.95.3 and get the following error on compilation...

c++ -c -g -D__SOLARIS__ -I. -I../../include -o debug.o debug.C
debug.C: In function `void LogMessage(int, char *, ...)':
debug.C:117: `__builtin_va_alist' undeclared (first use this function)
debug.C:117: (Each undeclared identifier is reported only once
debug.C:117: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `debug.o'

Can anyone help me with this as I'm stumped ? :(

Cheers,
Brian.
 
I was having a problem very similar to this with gcc 2.96.
After reading a few bulletin boards concerning this "bug", I downloaded gcc 2.95 and tried to install it. The "compile" of 2.95 failed for a variety of reasons. After being frustrated, I tried to compile my stuff again using 2.96 and I'll be darned if it didn't work!
I can't explain why and I haven't investigated it any further.

Hope this helps.
Au revior,
Ricky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top