Linking problem

Discussion in 'iOS Development' started by ElTres, Jul 23, 2008.

  1. ElTres

    ElTres New Member

    Joined:
    Nov 7, 2007
    Messages:
    149
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    So, I used gojohnnybois tutorial to build the Toolchain and used Skylars example MyApp code. Compiling works fine, but linking fails:
    Code:
    $ make
    arm-apple-darwin-gcc -c   main.m -o main.o
    arm-apple-darwin-gcc -c   MyApp.m -o MyApp.o
    arm-apple-darwin-gcc -lobjc -framework CoreFoundation -framework Foundation -fra
    mework UIKit -o MyApp main.o MyApp.o
    /usr/local/bin/arm-apple-darwin-ld: /usr/local/arm-apple-darwin/filesystem/usr/l
    ib/libobjc.dylib load command 10 unknown cmd field
    /usr/local/bin/arm-apple-darwin-ld: /usr/local/arm-apple-darwin/filesystem/Syste
    m/Library/Frameworks/CoreFoundation.framework/CoreFoundation load command 14 unk
    nown cmd field
    /usr/local/bin/arm-apple-darwin-ld: /usr/local/arm-apple-darwin/filesystem/Syste
    m/Library/Frameworks/Foundation.framework/Foundation load command 9 unknown cmd
    field
    /usr/local/bin/arm-apple-darwin-ld: /usr/local/arm-apple-darwin/filesystem/Syste
    m/Library/Frameworks/UIKit.framework/UIKit load command 30 unknown cmd field
    /usr/local/bin/arm-apple-darwin-ld: /usr/local/arm-apple-darwin/filesystem/usr/l
    ib/libSystem.dylib load command 7 unknown cmd field
    collect2: ld returned 1 exit status
    make: *** [MyApp] Error 1
    
    I never understood linking error messages, can anybody help?

Share This Page