From: "Ramin NIkaeen" <Rnikaeen@goldline.net>
To: <gcc-help@gcc.gnu.org>
Cc: <gcc@gcc.gnu.org>
Subject: simple question
Date: Thu, 15 Apr 2004 21:43:00 -0000 [thread overview]
Message-ID: <05386CFC1075EA4B8CA65341344BAF72FD1CB9@mail.goldline.net> (raw)
Valued Colleagues,
I have built and installed gcc-3.3 on RedHat linux 7.2 but I am having
problems with the compiler. For several days I have been trying to
figure out the cause of the problem but I have not had much success.
Below is a small sample program and the compiler error that I get.
If someone can give me any pointers as to the cause of the problem,
I will be very thankful.
best regards
ramin
--------------------------------------------------------------------------------------------
TEST PROGRAM
--------------------------------------------------------------------------------------------
jupiter.goldline.net:/home/rnikaeen/test>more c.cpp
#include <iostream>
#include <string>
using namespace std;
int main()
{
cerr << "Enter your name ";
return 0;
}
--------------------------------------------------------------------------------------------
COMPILER OUTPUT
--------------------------------------------------------------------------------------------
jupiter.goldline.net:/home/rnikaeen/test>gcc c.cpp
/tmp/cc5AisQc.o: In function `main':
/tmp/cc5AisQc.o(.text+0x1b): undefined reference to `std::cerr'
/tmp/cc5AisQc.o(.text+0x20): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/cc5AisQc.o: In function `__static_initialization_and_destruction_0(int, int)':
/tmp/cc5AisQc.o(.text+0x49): undefined reference to `std::ios_base::Init::Init[in-charge]()'
/tmp/cc5AisQc.o(.text+0x64): undefined reference to `std::ios_base::Init::~Init [in-charge]()'
/tmp/cc5AisQc.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
--------------------------------------------------------------------------------------------
gcc VERSION
--------------------------------------------------------------------------------------------
jupiter.goldline.net:/home/rnikaeen/test>which gcc
/usr/local/bin/gcc
jupiter.goldline.net:/home/rnikaeen/test>gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ./configure
Thread model: posix
gcc version 3.3
--------------------------------------------------------------------------------------------
RedHat Linux VERSION
--------------------------------------------------------------------------------------------
jupiter.goldline.net:/usr/local/publicVoiceXML/speech_tools-1.2.3>uname -v
#1 Thu May 29 08:32:50 EDT 2003
jupiter.goldline.net:/usr/local/publicVoiceXML/speech_tools-1.2.3>uname -a
Linux jupiter.goldline.net 2.4.20-18.7 #1 Thu May 29 08:32:50 EDT 2003 i686 unknown
jupiter.goldline.net:/usr/local/publicVoiceXML/speech_tools-1.2.3>
next reply other threads:[~2004-04-15 21:43 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-15 21:43 Ramin NIkaeen [this message]
2004-04-15 21:47 ` Gabriel Dos Reis
2004-04-15 21:47 ` Andreas Tobler
2004-04-15 21:48 ` Paolo Carlini
2004-04-16 9:06 ` Houda Benabderrazik
-- strict thread matches above, loose matches on Subject: below --
2012-08-22 13:58 Simple question Byron Blue
2012-08-22 14:03 ` Ángel González
2012-08-22 14:35 ` Ian Lance Taylor
2012-08-22 15:21 ` David Brown
2012-08-22 16:39 ` Bob Plantz
2012-08-25 15:57 ` Florian Weimer
2012-08-25 16:05 ` Georg-Johann Lay
2012-08-25 17:30 ` Ian Lance Taylor
2012-08-25 17:55 ` Bob Plantz
2012-08-25 18:20 ` Georg-Johann Lay
2012-08-25 20:37 ` Ian Lance Taylor
2012-08-25 21:01 ` Georg-Johann Lay
2012-08-25 21:23 ` Ian Lance Taylor
2012-08-26 9:13 ` Ángel González
2012-08-26 9:55 ` Jonathan Wakely
2004-04-16 19:26 simple question lrtaylor
2004-04-16 19:19 Ramin NIkaeen
2004-04-16 16:40 lrtaylor
2002-11-27 10:11 cowen
2000-08-08 10:46 RPathiyal
2000-08-08 18:18 ` Alexandre Oliva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=05386CFC1075EA4B8CA65341344BAF72FD1CB9@mail.goldline.net \
--to=rnikaeen@goldline.net \
--cc=gcc-help@gcc.gnu.org \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).