Results 1 to 4 of 4
  1. #1
    Creating shared objects (dylibs)
    On OS X 10.3.9, I can create shared objects using the
    following commands:

    cc -fPIC -c -o file1.o file1.c
    cc -fPIC -c -o file2.o file2.c
    cc -fPIC -c -o file3.o file3.c
    libtool -dynamic -o libfile.dylib file1.o file2.o file3.o -lc
    However, on any version of OS X 10.4, this fails with a linker

    ld: for architecture ppc
    ld: Undefined symbols:
    libtool: internal link edit command failed
    Any ideas?

  2. #2
    I should add that I don't have a 10.4 machine to experiment on.

  3. #3

    xstep's Avatar
    Member Since
    Jun 25, 2005
    On the road
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    Quote Originally Posted by xwasp
    libtool -dynamic -o libfile.dylib file1.o file2.o file3.o -lc
    Try changing the line to;
    libtool -dynamic -lSystemStubs -o libfile.dylib file1.o file2.o file3.o -lc

    I found that answer from Apple's macosx-dev list dated October 28, 2005.

  4. #4
    Thanks. I'll give it to my friend to try tonight.

    A generic google search was most unhelpful. I'll check the
    Apple lists in future.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help with Obj C - creating multiple objects
    By capturenow in forum iOS and Apps
    Replies: 3
    Last Post: 09-23-2011, 01:55 PM
  2. Creating Shared Device Alias
    By zhade in forum macOS - Operating System
    Replies: 4
    Last Post: 03-09-2011, 05:01 PM
  3. Creating itunes playlist from shared library?
    By Buddha_luver in forum Music, Audio, and Podcasting
    Replies: 0
    Last Post: 06-16-2010, 09:57 PM
  4. Creating a "shared folder" for wireless network?
    By ADB3411 in forum Switcher Hangout
    Replies: 7
    Last Post: 03-26-2008, 09:13 AM
  5. Creating a shared partitian
    By Bary79 in forum macOS - Operating System
    Replies: 7
    Last Post: 09-02-2007, 05:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts