undefined symbol main - in icc

undefined symbol main - in icc

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

2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

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

Melden Sie sich an, um einen Kommentar zu hinterlassen.