Message-ID: <3BDD9BC7.E51EA7C8@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp,comp.lang.c Subject: GCC bug (semi OT on clc) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 41 Date: Mon, 29 Oct 2001 19:55:08 GMT NNTP-Posting-Host: 12.90.173.201 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1004385308 12.90.173.201 (Mon, 29 Oct 2001 19:55:08 GMT) NNTP-Posting-Date: Mon, 29 Oct 2001 19:55:08 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Under DJGPP, when compiling cokus.c from: http://www.math.keio.ac.jp/~matumoto/cokus.c we get the following: > [1] c:\dnld\scratch>gcc -v cokus.c > Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.953/specs > gcc version 2.95.3 20010315/djgpp (release) > c:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -std=c89 -v -D__GNUC__=2 -D__ > GNUC_MINOR__=95 -trigraphs -D__STRICT_ANSI__ -D__unix__ -D__i386__ -D__GO32__ -D > __DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asyste > m(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -W -Wall -pedantic -Acpu(i38 > 6) -Amachine(i386) -D__i386 -D__i386__ -D__tune_pentium__ -imacros c:/djgpp/lib/ > djgpp.ver -remap cokus.c c:/djgpp/tmp\cccZc1wE.i > GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax) > #include "..." search starts here: > #include <...> search starts here: > c:/djgpp/lib/gcc-lib/djgpp/2.953/include > c:/djgpp/include > End of search list. > The following default directories have been omitted from the search path: > $DJDIR/lang/cxx > $DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include > End of omitted list. > cokus.c:52: unterminated character constant > cokus.c:77: unterminated character constant > cokus.c:106: unterminated character constant > cokus.c:115: unterminated character constant These seem to be due to isolated apostrophes "'" within // comments. I suspect this is GCC generic, and not anything to do with the DJGPP port. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) Available for consulting/temporary embedded and systems. (Remove "XXXX" from reply address. yahoo works unmodified) mailto:uce AT ftc DOT gov (for spambots to harvest)