lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev Re: Compile problems w/Borland CBuilder4 (C++5.4)


From: dickey
Subject: Re: lynx-dev Re: Compile problems w/Borland CBuilder4 (C++5.4)
Date: Tue, 18 May 1999 22:19:23 -0400 (EDT)

> 
> On Tue, May 18, 1999 at 08:00:40PM -0400, Webmaster Jim wrote: 
> > On Tue, May 18, 1999 at 07:44:44PM -0400, address@hidden wrote: 
> > > > Last week, Gisle V. suggested:  
> > > > > <windows.h> isn't included...  
> > > > and  
> > > > > Try to define 'WIN_32_LEAN_AND_MEAN'...  
> > > > I've gotten a bit farther tonight, in that I can compile makeuctb and  
> > > > run it. Pushing on to WWW/Library, I am stuck now with variable string  
> > > > arguments in HTString.c.  
> > > what header files does it have?  there's only a few standard ones to 
> > > look for (stdarg.h vs varargs.h). 
> > STDARG   H           1,260  01-27-99  4:00a stdarg.h 
> > VARARGS  H             936  01-27-99  4:00a varargs.h 
> > It's got both of the above. 
>  
> OK; after reading the notes in the above includes, I found that  
> using windows.h includes stdarg.h, precluding varargs.h.  However, 
> 4 lines are still sticking in HTString.c: 
>  
> Error E2258 ../../Library/Implementation/HTString.c 586:  
>   Declaration was expected in function HTSprintf 
> Error E2219 ../../Library/Implementation/HTString.c 591:  
>   Wrong number of arguments in call of macro 'va_start' in function HTSprintf 
> Error E2258 ../../Library/Implementation/HTString.c 617:  
>   Declaration was expected in function HTSprintf0 
> Error E2219 ../../Library/Implementation/HTString.c 621:  
>   Wrong number of arguments in call of macro 'va_start' in function 
> HTSprintf0 

the ANSI (stdard.h) va_start uses two arguments, while the K&R uses one.
  
you probably haven't got __STDC__ defined, so the ifdef for ANSI_VARARGS
in HTUtils.h isn't defining HAVE_STDARG_H

> ---- 
> /jes 


-- 
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]