🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #8695

Problemas con gcc

#8695
From: Javi
Date: Thu, 17 Oct 2002 17:39
22 lines
1876 bytes
Hola,
Estoy tratando de compilar un programa sencillo escrito en c++. La l�nea q
utilizo es:

[jav@cable213a078 ahorcado]$ gcc main.cc -Ilibs -Llibs
y recibo una cascada mensajes como:
^[OA/tmp/ccuEt975.o: In function `main':
/tmp/ccuEt975.o(.text+0x43): undefined reference to `operator new(unsigned)'
/tmp/ccuEt975.o(.text+0x97): undefined reference to `operator delete(void*)'
/tmp/ccuEt975.o(.text+0xbc): undefined reference to `operator delete(void*)'
/tmp/ccuEt975.o(.text+0xf9): undefined reference to `ahorcado::getPalabra()'
[...]
/tmp/ccuEt975.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld devolvi� el estado de salida 1

La sintaxis es correcta (con -fsyntax-only no da problemas)

Uso gcc 3.2 en RedHat8.0
-- 
Un saludo,
T. Javier Robles Prado tjavier@usuarios.retecal.es
http://users.servicios.retecal.es/tjavier
Technical Details
Message-ID: <pan.2002.10.17.17.39.39.852674@usuarios.retecal.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!nntp1.hal-pc.org!newsfeeder.mylinuxisp.com!antonio.escomposlinux.org!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,9f3fcccd4447583e,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-10-17 10:35:28 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!nntp1.hal-pc.org!newsfeeder.mylinuxisp.com!antonio.escomposlinux.org!not-for-mail
From: "Javi" <tjavier@usuarios.retecal.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Problemas con gcc
Date: Thu, 17 Oct 2002 19:39:40 +0200
Organization: Ecolnet
Lines: 23
Message-ID: <pan.2002.10.17.17.39.39.852674@usuarios.retecal.es>
NNTP-Posting-Host: cable213a078.usuarios.retecal.es
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
X-Trace: antonio.escomposlinux.org 1034876123 1138 212.183.213.78 (17 Oct 2002 17:35:23 GMT)
X-Complaints-To: usenet@antonio.escomposlinux.org
NNTP-Posting-Date: Thu, 17 Oct 2002 17:35:23 +0000 (UTC)
User-Agent: Pan/0.13.0 (The whole remains beautiful)