[Tech] Problemi nel link di un programma C++

Szymon Stefanek s.stefanek@libero.it
Mar 4 Mar 2003 18:35:38 CET


On Tuesday 04 March 2003 18:05, Stefano wrote:
> [root@linux TPortaLinux]# make
> g++    -c -o TPorta.o TPorta.cpp
> gcc  -o TPorta TPorta.o
> TPorta.o: In function `main':
> TPorta.o(.text+0x4a): undefined reference to `operator new(unsigned)'
> TPorta.o(.text+0x7a): undefined reference to `operator delete(void*)'
> TPorta.o(.text+0xa2): undefined reference to `operator delete(void*)'
> TPorta.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
> collect2: ld returned 1 exit status
> make: *** [TPorta] Error 1

forse:

gcc -lstdc++ -o TPorta TPorta.o

Szymon Stefanek



Maggiori informazioni sulla lista flug-tech