public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Amos Anderson <amosa@caltech.edu>
To: gcc-help@gcc.gnu.org
Subject: linker problem using gcc on osx
Date: Sun, 05 Dec 2004 23:01:00 -0000	[thread overview]
Message-ID: <915CF400-4711-11D9-9BDA-000A95B02DA0@caltech.edu> (raw)

hello -- so yesterday i worked on getting the ATLAS math library from 
sourceforge to compile on my G4 laptop with OSX. none of the 3 apple 
bundled gcc's would work, so i downloaded a fresh version from gnu, 
which i compiled and installed. i was finally able to get ATLAS 
compiled, but now i'm having problems getting my other source code 
(c++) to compile. i think the ATLAS library compiled 100% correctly, 
but i can't test it with my code...

the problem:
it doesn't matter which of 4 compilers i use, when it is trying to link 
the object files, the ld command gives many errors (undefined symbols) 
- a different number depending on which compiler i tried. the errors 
look to me like they're c++ related, a lot of them are from std::

the apple compilers worked just fine before.
when i compiled gcc 3.4.3, i used the following configuration:
Configured with: ../gcc-3.4.3/configure --program-suffix=-3.4.3 
--enable-languages=c,c++,f77,java
then, when i installed the gcc, i simply did the "make install" command 
recommended, which put all the stuff in my /usr/local directory.

so i've never compiled a compiler before, or monkeyed around with 
already installed compilers, etc. what might i have done wrong? i've 
probably made a simple mistake somewhere --
why wouldn't my compiler be able to find c++ symbols?


thanks!

Amos.


                 reply	other threads:[~2004-12-05 23:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=915CF400-4711-11D9-9BDA-000A95B02DA0@caltech.edu \
    --to=amosa@caltech.edu \
    --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).