bugLightweight C++ - Bugs: bug #15414, __attribute__ in std C headers...

 
 

bug #15414: __attribute__ in std C headers breaks all compilation

Submitted by:  None
Submitted on:  Tue 10 Jan 2006 12:21:50 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 10 Jan 2006 12:21:50 AM UTC, original submission:

Hi!

i'm getting an error when trying to compile any code which includes standard C headers. Using, for example, the first sample program from the web site:

[stephan@goblin:/home/stephan/src/lwc-1.3.2/test]$lwc 1.c > foo.c
Running: cpp -D__LWC__ -x c -C -gcc 1.c
/usr/include/stdio.h:39 [Token 1507]: invalid declaration separator : `__attribute__'
Somewhere in: @* _pfx ) __attribute_ ( ( _nothrow_ ) ) _attribute_ ( ( _malloc_ ) ) ; extern int fclose (

This shows up with gcc 4.0.2 and 3.4.3. i tried using -D__attribute__= , but that generated a different error (as expected).

i also tried the 'extern "stdio.h"' trick mentioned in the tutorial, but the result is the same.

----- -unavailable-

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1