* gcc won't compile
@ 2001-11-20 7:49 Gabi Bakray
2001-11-20 12:05 ` Claudio Bley
2001-11-27 9:59 ` Gabi Bakray
0 siblings, 2 replies; 4+ messages in thread
From: Gabi Bakray @ 2001-11-20 7:49 UTC (permalink / raw)
To: gcc-help
Hi,
I installed gcc3.0.1 SPARC/Solaris 8 binary freeware package.
g++ compiles a "helo world" program just fine, but when I try to run gcc
I get a very long error message starting with:
/var/tmp/ccY1oxXs.o: In function `main':
/var/tmp/ccY1oxXs.o(.text+0x1ac): undefined reference to `std::cout'
.
.
.
What's wrong?
Sincerely,
Gabi Barkay
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcc won't compile
2001-11-20 7:49 gcc won't compile Gabi Bakray
@ 2001-11-20 12:05 ` Claudio Bley
2001-11-27 11:33 ` Claudio Bley
2001-11-27 9:59 ` Gabi Bakray
1 sibling, 1 reply; 4+ messages in thread
From: Claudio Bley @ 2001-11-20 12:05 UTC (permalink / raw)
To: Gabi Bakray; +Cc: gcc-help
>>>>> "Gabi" == Gabi Bakray <gabi@hadassah.org.il> writes:
Gabi> Hi, I installed gcc3.0.1 SPARC/Solaris 8 binary freeware
Gabi> package.
Gabi> g++ compiles a "helo world" program just fine, but when I
Gabi> try to run gcc I get a very long error message starting
Gabi> with:
Gabi> /var/tmp/ccY1oxXs.o: In function `main':
Gabi> /var/tmp/ccY1oxXs.o(.text+0x1ac): undefined reference to
Gabi> `std::cout' . . .
Gabi> What's wrong?
Gabi> Sincerely,
Gabi> Gabi Barkay
Hi.
Generally, if you want to compile a C++ program, just use g++.
Albeit gcc will determine the language from the file extension
(e.g. .C .cpp .cc .c++ for C++) it will not link with the necessary
standard C++ library libstdc++ and hence it will usually fail.
Compiling C programs with gcc should work fine.
Claudio
^ permalink raw reply [flat|nested] 4+ messages in thread
* gcc won't compile
2001-11-20 7:49 gcc won't compile Gabi Bakray
2001-11-20 12:05 ` Claudio Bley
@ 2001-11-27 9:59 ` Gabi Bakray
1 sibling, 0 replies; 4+ messages in thread
From: Gabi Bakray @ 2001-11-27 9:59 UTC (permalink / raw)
To: gcc-help
Hi,
I installed gcc3.0.1 SPARC/Solaris 8 binary freeware package.
g++ compiles a "helo world" program just fine, but when I try to run gcc
I get a very long error message starting with:
/var/tmp/ccY1oxXs.o: In function `main':
/var/tmp/ccY1oxXs.o(.text+0x1ac): undefined reference to `std::cout'
.
.
.
What's wrong?
Sincerely,
Gabi Barkay
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcc won't compile
2001-11-20 12:05 ` Claudio Bley
@ 2001-11-27 11:33 ` Claudio Bley
0 siblings, 0 replies; 4+ messages in thread
From: Claudio Bley @ 2001-11-27 11:33 UTC (permalink / raw)
To: Gabi Bakray; +Cc: gcc-help
>>>>> "Gabi" == Gabi Bakray <gabi@hadassah.org.il> writes:
Gabi> Hi, I installed gcc3.0.1 SPARC/Solaris 8 binary freeware
Gabi> package.
Gabi> g++ compiles a "helo world" program just fine, but when I
Gabi> try to run gcc I get a very long error message starting
Gabi> with:
Gabi> /var/tmp/ccY1oxXs.o: In function `main':
Gabi> /var/tmp/ccY1oxXs.o(.text+0x1ac): undefined reference to
Gabi> `std::cout' . . .
Gabi> What's wrong?
Gabi> Sincerely,
Gabi> Gabi Barkay
Hi.
Generally, if you want to compile a C++ program, just use g++.
Albeit gcc will determine the language from the file extension
(e.g. .C .cpp .cc .c++ for C++) it will not link with the necessary
standard C++ library libstdc++ and hence it will usually fail.
Compiling C programs with gcc should work fine.
Claudio
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-11-27 19:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-20 7:49 gcc won't compile Gabi Bakray
2001-11-20 12:05 ` Claudio Bley
2001-11-27 11:33 ` Claudio Bley
2001-11-27 9:59 ` Gabi Bakray
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).