delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/11/17:45:07

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Subject: Re: stdarg.h problem(s)?
Newsgroups: comp.os.msdos.djgpp
References: <%kET9.17088$q67 DOT 14211 AT news-binary DOT blueyonder DOT co DOT uk> <1042224128 DOT 205850 AT queeg DOT ludd DOT luth DOT se> <0oNT9.5250$CZ5 DOT 4796 AT news-binary DOT blueyonder DOT co DOT uk>
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (SunOS/5.8 (sun4u))
Message-ID: <1042324329.821536@queeg.ludd.luth.se>
Cache-Post-Path: queeg.ludd.luth.se!unknown AT brother DOT ludd DOT luth DOT se
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)
Date: 11 Jan 2003 22:32:09 GMT
Lines: 80
NNTP-Posting-Host: queeg.ludd.luth.se
X-Trace: 1042324329 news.luth.se 26542 130.240.16.109
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Edd Dawson <hotcakes AT planetquake DOT com> wrote:
:> : I get zero compilation errors but this is the output when i run the
: program:
:>
:> How about warnings? Add "-Wall".
:>

: If i turn on all warnings, it doesn't say anything that relates to the
: problem, only moans about the control reaching the end of non-void function
: (main). Also warns return type defaults to 'int' in function Warning.

I thought that you'd get the same as in the C++ case (C++ compiler has
more warnings/errors on by default).

:> Have you read the readme file that came in gcc*b.zip. (I don't
:> remember its name but it starts or ends with "readme"). You need to
:> patch the header file, IIRC.

: The only thing I've managed to find is some blurb at the bottom of
: readme.DJGPP - some preprocessor directives:

: --- include/sys/djtypes.h~1 Tue Dec 14 06:56:16 1999
: +++ include/sys/djtypes.h Mon Feb  4 16:20:40 2002
: @@ -12,7 +12,12 @@
:  #define __DJ_ssize_t typedef int ssize_t;
:  #define __DJ_time_t typedef unsigned int time_t;
:  #define __DJ_uid_t typedef int uid_t;
: +
: +#if __GNUC__>=3
: +#define __DJ_va_list    typedef __builtin_va_list va_list;
: +#else
:  #define __DJ_va_list typedef void *va_list;
: +#endif

:  #if defined(__cplusplus) && ( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) ||
: __GNUC__ >= 3 )
:  /* wchar_t is now a keyword in C++ */


: Is that what you mean? If so what do I do with this? :) I'm struggling to
: find any other related information to this in the file or any others...
: Help! :)

Yes. That's what I was thinking of. You either:
1. Use patch to patch (uh!) your header.

2. Change it manually, but make very sure that you don't mistype
anything.

3. Perhaps you don't need to change it at all if you already has those
lines in the header file. (It's some other problem then.)

:> : So then I tried renaming c:/djgpp/lib/gcc-lib/djgpp/3.2/include/stdarg.h
: to
:> : something else for the time being. It then compiled fine, but then same
:>
:> No. You should never rename anything (unless instructed by e. g. a
:> readme to do so)! You're just breaking things.
:>
:> Why is it that people think this is a good idea? I'd sure like to
:> know.

: Broken is broken. If i change it, the worse that can happen is that it's

I agree that broken is broken. Why would breaking it more mend it?
Furthermore any sane person will refuse to help you until you've
reinstalled.

: still broken. Besides the change was only temporary as stated. I didn't know
: that changing data stored on my own computer could be so offensive to
: someone else. I will try harder in future.

It's not offensive. But strange (to me at least). However you might
want some help and any sane person will refuse to help you until
you've reinstalled. Your choice.


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019