Message-ID: <379E3843.3F6FFCAE@unb.ca> Date: Tue, 27 Jul 1999 18:52:51 -0400 From: Endlisnis X-Mailer: Mozilla 4.51 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp To: djgpp AT delorie DOT com Subject: Re: __attribute__((unused)), gcc get's confused...? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > On Mon, 26 Jul 1999, Endlisnis wrote: > > b.cc(1) Error: parse error before `__attribute__' > > In function `int main(...)': > > I don't think you said it was a C++ program in your original message > (if you did, I missed it and I apologize). __attribute__ support in > the C++ compiler has several bugs, up to and including the current > pretest versions of GCC 2.95. FWIW, your example compiles without any > problems as a C program. I didn't actually say it. The compiler messages did use the extention ".cc" for the file, but I guess I just forget that people still use C. I don't understand why people would use C when C++ is available (with the possible exception of better compilers for C code). -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT HotMail DOT com ICQ: 32959047