🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42886

Re: vaarg

#42886
From: Aston Chan
Date: Thu, 12 Oct 1995 00:00
41 lines
1580 bytes
--

Just an update.  My problem was that I wasn't using gcc's varargs.h.
I thought I had the -I setup correctly but obviously not...

Thanks.

-Aston
---------------------------------------------------------------------
 
In article <45behq$jm7@RedDragon.Empire.Net>, achan@drippy.aimtech.com (Aston Chan) writes:
> 
> -- 
> Hi,
> 
> I'm using gcc2.7.0 (it applies to gcc2.6.3 as well).  I have a 
> routine which accepts variable arguments.  The "problem" was that
> only the 1st va_arg() returns the expected string.  The subsequent
> calls to va_arg() returned garbage.
> 
> I read the gcc.info-xx and found something along this line but 
> don't quite get what I need to do to solve this problem.
> 
> A small program with the calling routine located in the same module
> doesn't have the problem.  It only shows up when the routine is in
> another archive.
> 
> Thanks in advance for any help.
> 
> -Aston
> ------------
>     / Aston Chan  (603) 883-0220
>    // AimTech Corporation, Nashua, NH
>   /// achan@redline.aimtech.com
> 

------------
    / Aston Chan  (603) 883-0220
   // AimTech Corporation, Nashua, NH
  /// achan@redline.aimtech.com
Technical Details
Message-ID: <45j4r7$agg@RedDragon.Empire.Net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <45behq$jm7@RedDragon.Empire.Net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,6e99ee51b5efcbeb
X-Google-Attributes: gid11318c,public
From: achan@drippy.aimtech.com (Aston Chan)
Subject: Re: vaarg
Date: 1995/10/12
Message-ID: <45j4r7$agg@RedDragon.Empire.Net>
X-Deja-AN: 117461230
references: <45behq$jm7@RedDragon.Empire.Net>
organization: Aimtech, Nashua, NH
newsgroups: gnu.gcc.help