Preprocessor flags [message #677673] |
Thu, 09 June 2011 06:33 |
RedSonja Messages: 13 Registered: May 2011 Location: South Germany |
Junior Member |
|
|
I am porting C++ from Windows/VS to Solaris/Eclipse/gcc. Eclipse version 3.3.1.1.
Before I moved it to the sun it I compiled it all under Windows/Eclipse/gcc, Galileo, doesn't want to admit to a version. Now the Galileo/gcc seems to have a preprocessor flag __GNUC__, fine, I can hide stuff I don't want VS to read.
On the Sun it has this flag too, but the gccs behave differently, have different include files etc, so I need another flag for Solaris-gcc. Is there one? How can I see the preprocessor flags under Eclipse, how can I set them myself?
Sorry if this is in the wrong forum, I am new to this.
edit: with a bit of testing I discovered __GNUC__ has a value. Under Windows/Eclipse/gcc it is 3, under Solaris/Eclipse/gcc it is 4. So I can write #if __GNUC__ >= 4 etc. All the same, I would still like to know where I can see this in Eclipse, and if there is a table to tell me what value __GNUC__ has for different gcc versions, because we are planning to port this thing to other systems too.
[Updated on: Thu, 09 June 2011 07:27] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02844 seconds