🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Compiladores

#10891
From: Rafa Martín de Agar Tirado
Date: Tue, 22 Jan 2002 12:35
29 lines
2247 bytes
Jos� Alberto, acabo de incluir el contenido de tu programa en un fichero 
llamado prueba.cpp. Voy a mostrarte 2 resultados distintos al compilarlo de 
2 formas distintas:

ertiti@PowerGuGui:~/paborra$ gcc prueba.cpp
/tmp/cchv9FKS.o: In function `main':
/tmp/cchv9FKS.o(.text+0xa): undefined reference to `endl(ostream &)'
/tmp/cchv9FKS.o(.text+0x24): undefined reference to `cout'
/tmp/cchv9FKS.o(.text+0x29): undefined reference to 
`ostream::operator<<(char const *)'
/tmp/cchv9FKS.o(.text+0x34): undefined reference to 
`ostream::operator<<(int)'
/tmp/cchv9FKS.o(.text+0x3f): undefined reference to 
`ostream::operator<<(char const *)'
/tmp/cchv9FKS.o(.text+0x4a): undefined reference to 
`ostream::operator<<(ostream &(*)(ostream &))'
collect2: ld returned 1 exit status
ertiti@PowerGuGui:~/paborra$

Son exactamente los mismos problemas q t ocurren a ti, �verdad? 
Pues atento a lo siguiente:

ertiti@PowerGuGui:~/paborra$ g++ prueba.cpp
ertiti@PowerGuGui:~/paborra$

Me temo q el problema es q est�s compilando con el gcc y no con el g++.
Espero haber solucionado tu problema. 

Salu2. Rafa
Technical Details
Message-ID: <a2jma2$27k$1@news.ya.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.rediris.es!news.ya.com!yacom!not-for-mail
References: <3C457917.6D63E900@mad.tecsidel.es> <3C4C22F8.A6074DD2@mad.tecsidel.es> <slrna4p46n.8q.reinoso@EA4BAO.PLLANO.ESP.EU> <3C4D2914.D6CCE423@mad.tecsidel.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,8a0eabd3a56292df
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-01-22 04:36:07 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.rediris.es!news.ya.com!yacom!not-for-mail
From: Rafa Martín de Agar Tirado <rafamartin@gmx.net>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Compiladores
Date: Tue, 22 Jan 2002 13:35:14 +0100
Organization: ya.com internet factory
Lines: 29
Message-ID: <a2jma2$27k$1@news.ya.com>
References: <3C457917.6D63E900@mad.tecsidel.es> <3C4C22F8.A6074DD2@mad.tecsidel.es> <slrna4p46n.8q.reinoso@EA4BAO.PLLANO.ESP.EU> <3C4D2914.D6CCE423@mad.tecsidel.es>
Reply-To: rafamartin@gmx.net
NNTP-Posting-Host: 213-97-130-170.uc.nombres.ttd.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
X-Trace: news.ya.com 1011702914 2292 213.97.130.170 (22 Jan 2002 12:35:14 GMT)
X-Complaints-To: newsmaster@ya.com
NNTP-Posting-Date: Tue, 22 Jan 2002 12:35:14 +0000 (UTC)
User-Agent: KNode/0.4