🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problemas con gcc

#8700
From: Javi
Date: Thu, 17 Oct 2002 20:06
25 lines
2284 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+0x6a): undefined reference to `ahorcado::ahorcado[in-charge](char*, int)'
/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(.text+0x107): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
[...]
/tmp/ccuEt975.o(.text+0x2a1): undefined reference to `std::ios_base::Init::~Init [in-charge]()'
/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.38.35.34511@usuarios.retecal.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.telusplanet.net!ps01-chi1.MISMATCH!chi1.webusenet.com!rip!news.webusenet.com!cox.net!antonio.escomposlinux.org!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,9f3fcccd4447583e
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-10-17 13:02:59 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.telusplanet.net!ps01-chi1.MISMATCH!chi1.webusenet.com!rip!news.webusenet.com!cox.net!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 22:06:07 +0200
Organization: Ecolnet
Lines: 26
Message-ID: <pan.2002.10.17.17.38.35.34511@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 1034884978 3838 212.183.213.78 (17 Oct 2002 20:02:58 GMT)
X-Complaints-To: usenet@antonio.escomposlinux.org
NNTP-Posting-Date: Thu, 17 Oct 2002 20:02:58 +0000 (UTC)
User-Agent: Pan/0.13.0 (The whole remains beautiful)