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

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

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

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya