Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

icc: can't compiling

Sangamesh_B_
Beginner
414 Views
Hi All,

I tried to compile a simple C program. Its giving following error:

# icc sample.c -o sample.o
Command-line error: invalid GNU version number: 411

compilation aborted for sample.c (code 4)

Before it was working. I don't know what went wrong but its not working now. Can some one tell why this is so and how to solve it?

regards
Sanagmesh


0 Kudos
3 Replies
TimP
Honored Contributor III
414 Views
Perhaps you updated your g++ without updating icc? Current icc should work OK with gcc 4.1.
0 Kudos
Sangamesh_B_
Beginner
414 Views
My colleague has updated gcc. Now I need intel compiler working. How to do this? Is there a way to update without reinstalling..
0 Kudos
TimP
Honored Contributor III
414 Views
No, you would either set PATH to an older version of g++, or download and install a current icc.
0 Kudos
Reply