This is the mail archive of the gcc-help@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]

FW: promblem locating the __builtin_va_alist function...




> -----Original Message-----
> From:	GNU General Contact Address [SMTP:gnu@gnu.org]
> Sent:	Thursday, October 04, 2001 9:05 PM
> To:	Caroline Augustine
> Subject:	Re: promblem locating the __builtin_va_alist function...
> 
> You should send this question to the GCC users' mailing list:
> help-gcc@gnu.org.  This is gated to the news group, gnu.gcc.help.  You
> can subscribe to the mailing list by sending the word "subscribe" to
> the address help-gcc-request@gnu.org.
> 
> You can find a complete list of our mailing lists and newsgroups on
> our web site at http://www.gnu.org/prep/mailinglists.html.
> 
> Good luck and happy hacking!
> 
> 
> On Thu, Oct 04, 2001 at 04:27:54PM -0700, Caroline Augustine wrote:
> > 
> > I have installed the gnu 2.95.2 compiler on my x86 system running
> Solaris 8.
> > When I attempted to compile my driver I noticed that the compiler
> complained
> > about not having the __builtin_va_alist function. This is related to
> > variable length
> > arguments supplied to a function and is supposed to be taken care of
> > automatically
> > by the compiler.
> > 
> > Here is the code that is causing trouble:
> > 
> > aindprint(int lvl, const char *fmt, ...)
> > {
> > 	char buf[256];
> > 	va_list ap;
> > 
> > 	...
> > 
> > 	va_start(ap, fmt);
> > 
> > 	...
> > 
> > 	va_end(ap);
> > }
> > 
> > Error msg from the gnu compiler:
> > 
> > In function aindpirnt:
> > 	__builtin_va_alist undeclared (first used in the above function).
> > 
> > 
> > Please let me know how I can fix the above problem.
> > 
> > Thanks,
> > 
> > Caroline Augustine
> 
> -- 
> Orion Montoya, FSF Office Staff
> Free Software Foundation     |  Phone: +1-617-542-5942
> 59 Temple Place, Suite 330   |  Fax:   +1-617-542-2652
> Boston, MA 02111-1307  USA   |  Web:   http://www.gnu.org


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