Mail Archives: djgpp/2003/01/11/17:45:07
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 -