Mail Archives: djgpp/1994/08/01/12:13:52
To whomever it might concern:
Beware of makefiles which define USG!! If you leave this while compiling
with DJGPP, you'll get a program with most wierd behavior in everything
that involves stdio: innocent calls to fputs() will crash with segment
violation, fprintf(stdout, something) will mysteriously print nothing,
while printf(same something) will work, etc. I learned this the hard way:
I just spent 3 most frustrating hours trying to understand what gives.
And not even -Wall switch would give me any warning.
I would recommend putting a #warning message in the relevant include files
(ctype.h and stdio.h), when both __GO32__ and USG are #defined. I did this
at my place.
Eli Zaretskii
- Raw text -