linking problem on OSX 10.4.11 (ppc)

Discussion in 'Programming' started by Man Johnson, Jan 20, 2014.

  1. Man Johnson

    Man Johnson New Member

    Joined:
    Jan 20, 2014
    Messages:
    1
    Likes Received:
    0
    Hi,
    I've installed gcc-4.6 with Fink on a PowerPc with OSX 10.4.11 in order to compile a program. Everything works fine till the linking stage where I get these messages:

    powerpc-apple-darwin8-g++-4.0.1: unrecognized option '-shared'
    /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols: _main
    collect2: ld returned 1 exit status

    However the program is compiled with gcc-4.6. My configure options are:

    ./configure CFLAGS="-I/sw/include" CXXFLAGS=$CFLAGS CPPFLAGS=$CFLAGS ACLOCALFLAGS="-I/sw/share/aclocal" PKG_CONFIG_PATH="/sw/lib/pkgconfig" LDFLAGS=-L/sw/lib CC=/sw/bin/gcc-4 CXX=/sw/bin/g++-4 CPP=/sw/bin/cpp-4 --libdir=/sw/lib --includedir=/sw/include

    What could I do to have it link properly?

    Thank you in advance.
     
    Man Johnson, Jan 20, 2014
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Guest
    Replies:
    0
    Views:
    292
    Guest
    Nov 1, 2003
  2. Dallas
    Replies:
    1
    Views:
    247
    John C. Randolph
    Aug 23, 2003
  3. vpspot

    Mac OS Linking problem

    vpspot, Dec 13, 2004, in forum: Programmer Help
    Replies:
    2
    Views:
    292
    vpspot
    Dec 21, 2004
  4. vpspot

    Mac OS Linking problem

    vpspot, Dec 13, 2004, in forum: Programmer Help
    Replies:
    0
    Views:
    286
    vpspot
    Dec 13, 2004
  5. Ulrich Hobelmann

    Linking problem

    Ulrich Hobelmann, Jul 30, 2005, in forum: Programmer Help
    Replies:
    2
    Views:
    305
    Paul Pluzhnikov
    Jul 30, 2005
  6. Nathan Addy

    Linking on osx vs. linux question

    Nathan Addy, Feb 17, 2006, in forum: Programmer Help
    Replies:
    3
    Views:
    143
  7. Daniel Wetzler

    problem compiling/linking c++ application on osx

    Daniel Wetzler, Jul 19, 2003, in forum: Programmer Misc
    Replies:
    1
    Views:
    193
    Michael Thies
    Jul 21, 2003
  8. aanidaani@gmail.com

    Linking Mac OSX Desktop to another folder?

    aanidaani@gmail.com, May 6, 2006, in forum: Mac
    Replies:
    8
    Views:
    181
    Barry Margolin
    May 6, 2006
Loading...