🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Adnan Yaqub Wed, 21 Sep 1988 20:48
Preprocessing Order Bug in Gcc V27?
#1683
Author: Adnan Yaqub
Date: Wed, 21 Sep 1988 20:48
28 lines
1380 bytes
Gcc version 27 (which, by the way, says it is version 26) chokes when
compiling the Sun include file <sundev/vuid_event.h>.  This file has
the following strange comment in it:

#ifdef	COMMENT
...
	have to be concerned.  In fact, the vuid interface doesn't
...
#endif	COMMENT

The Gcc complains as follows:

faron% gcc -g -O  -mc68020 -c  t.c
/usr/include/sundev/vuid_event.h:39: unterminated character constant
faron%

when I compile the following code:

#include <sundev/vuid_event.h>
main(){}

Note that line 39 of vuid_event.h is the line in the "ifdef" with the
word "doesn't".

+-----------------------------------------------------------------------------+
|Adnan Yaqub			  ...[cwjcc|pyramid|decvax|masscomp]!abvax!acy|
|Allen-Bradley Company 747 Alpha Dr. Highland Hts. OH 44143 USA (216) 646-4409|
+-----------------------------------------------------------------------------+
Re: Preprocessing Order Bug in Gcc V27?
#1694
Author: Eduardo Krell
Date: Fri, 23 Sep 1988 00:14
15 lines
946 bytes
In article <8809212048.AA07318@faron.icd.abnet.com> Adnan Yaqub writes:

>#ifdef	COMMENT
>...
>	have to be concerned.  In fact, the vuid interface doesn't
>...
>#endif	COMMENT

Use the -traditional flag.

This is a consequence of GNU's cpp being ANSI compatible by default.
    
Eduardo Krell                   AT&T Bell Laboratories, Murray Hill, NJ

UUCP: {att,decvax,ucbvax}!ulysses!ekrell  Internet: ekrell@ulysses.att.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads