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

undefined symbol main - in icc

cathune
Beginner
1,312 Views
Hello,
I just installed Intel C++ v7. There was no problem during installation but whenever I type 'icc' I get following error message:
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'

I can't imagine that there's such a big bug in icc. But what could cause this error? - I had no problems with icc v6.

Carsten Scharfenberg
0 Kudos
1 Reply
John_O_Intel
Employee
1,312 Views
Hi Carsten,

> whenever I type 'icc' I get
> following error message:
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x18): undefined reference to
> `main'

This is a known issue with the icc version 7.0 - it occurs when you do not pass a file to the compiler. If you pass a file to the compiler, it works fine.

Sorry for the confusion this causes,
john
0 Kudos
Reply