Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

undefined symbol main - in icc

cathune
Beginner
490 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
490 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
Reply