public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: etc waju <etcwaju@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: failed complie for the 1st C++ program
Date: Wed, 05 Feb 2003 06:47:00 -0000	[thread overview]
Message-ID: <20030205064717.61738.qmail@web14510.mail.yahoo.com> (raw)

Hi
I am new to GCC, and I installed it on a Sun Workstation which was successful.
But when I tried to compile my very first C++ program, I got some not-understood errors.

Any help is much appreciated.

My program is really simple:

#include <iostream>
using namespace std;
int main()
{ cout << "Good morning.";
  return 0;
}

while I got quite some errors:

Undefined                       first referenced
 symbol                             in file
std::ios_base::Init::~Init [in-charge]()/var/tmp//ccK4GUO5.o
std::ios_base::Init::Init[in-charge]()/var/tmp//ccK4GUO5.o
std::cout                           /var/tmp//ccK4GUO5.o
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&, char const*)/var/tmp//ccK4GUO5.o
__gxx_personality_v0                /var/tmp//ccK4GUO5.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

             reply	other threads:[~2003-02-05  6:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-05  6:47 etc waju [this message]
2003-02-05 13:16 ` John Love-Jensen
2003-02-05  7:44 Ajay Bansal

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=20030205064717.61738.qmail@web14510.mail.yahoo.com \
    --to=etcwaju@yahoo.com \
    --cc=gcc-help@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).