public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "mark grimshaw" <mark_grimshaw@hotmail.com>
To: gcc-help@gcc.gnu.org
Subject: Help for GCC newbie
Date: Wed, 01 May 2002 00:23:00 -0000	[thread overview]
Message-ID: <F56qWEtBJYnIiK2mAey000064b3@hotmail.com> (raw)


Hello,

I have been trying to get GCC 3.0.4 which i downloaded and built to build 
even the simplest 'Hello World' programs.  I get the following  linker 
errors after a simple 'Hello World' has been compiled and similar errors 
when trying to build a C program (albeit the C runtime libraries are 
mentioned instead) - can anyone help me.  Thanks.

I compile my program using:
g++ -W -pedantic -o test.o test.cpp  (this works ok)
g++ -o test.exe test.o

test.o: In function `main':
/home/mark/C++programming/test.cpp:14: multiple definition of `__dso_handle'
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/crtbegin.o(.data+0x0): first 
defined here
test.o: In function `_init':
test.o(.init+0x0): multiple definition of `_init'
/usr/lib/crti.o(.init+0x0): first defined here
test.o: In function `_start':
test.o(.text+0x0): multiple definition of `_start'
/usr/lib/crt1.o(.text+0x0): first defined here
test.o: In function `main':
/home/mark/C++programming/test.cpp:14: multiple definition of `_fini'
/usr/lib/crti.o(.fini+0x0): first defined here
test.o: In function `main':
/home/mark/C++programming/test.cpp:14: multiple definition of 
`_GLOBAL_OFFSET_TABLE_'
/usr/lib/crti.o(.got.plt+0x0): first defined here
test.o: In function `main':
/home/mark/C++programming/test.cpp:14: multiple definition of 
`_IO_stdin_used'
/usr/lib/crt1.o(.rodata+0x4): first defined here
test.o: In function `main':
/home/mark/C++programming/test.cpp:14: multiple definition of `__data_start'
/usr/lib/crt1.o(.data+0x0): first defined here
/usr/lib/crti.o(.dynamic+0x0): multiple definition of `_DYNAMIC'
collect2: ld returned 1 exit status
make: *** [build] Error 1



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

             reply	other threads:[~2002-05-01  7:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-01  0:23 mark grimshaw [this message]
     [not found] <616BE6A276E3714788D2AC35C40CD18D5FB5BD@whale.softwire.co.uk>
2002-05-01  0:40 ` Rupert Wood
     [not found] ` <616BE6A276E3714788D2AC35C40CD18D5EC37C@whale.softwire.co.u k>
2002-05-02 16:17   ` Andrea 'Fyre Wyzard' Bocci

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=F56qWEtBJYnIiK2mAey000064b3@hotmail.com \
    --to=mark_grimshaw@hotmail.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).