PDA

View Full Version : [ubuntu] gcc compile error for #elif script ...



scho
January 26th, 2010, 04:19 PM
I am not sure if this will be a right place to post this question.
I have ubuntu 9.10 installed on my x86 64bit machine, and the
latest gcc version is 4.4, and had problems with compile C code
which is #if .. #elif #endif symbols. The compiles doesn't seem
to recognize #elif.. Is this a known problem ? or anyway to solve
this ? I didn't try all previous gcc versions, but was successful
with gcc version 4.1, so now I am just using the gcc version 4.1,
but I think it could be a simple thing to fix or has been already
fixed (?), but I think all my updates are up to date, so I am not
sure if there is anything I need to do further.

scho
January 26th, 2010, 04:41 PM
Sorry, I realized that it's because of the new feature in the version.
I found the reason on their website.
http://gcc.gnu.org/gcc-4.4/porting_to.html