collect2: ld returned 1 exit status ?

Discussion in 'Mac Programming' started by BollywooD, Feb 26, 2009.

  1. macrumors 6502

    Joined:
    Apr 27, 2005
    Location:
    Surfers Paradise
    #1
    I get the following errors when i try to build a project i am working on, and since i am very new to xcode, i have no idea what it means, can someone please point me in the right direction, to get this building.....

    many thanks in advance.

    Code:
    Building target “genericapp” of project “genericapp” with configuration “Debug”
    
    
    Checking Dependencies
    
    Ld "/Users/user/Documents/Media/xCode/genericapp/work with this/genericapp/build/Debug/genericapp.bundle/Contents/MacOS/genericapp" normal i386
        cd "/Users/user/Documents/Media/xCode/genericapp/work with this/genericapp"
        setenv MACOSX_DEPLOYMENT_TARGET 10.5
        /Developer/usr/bin/gcc-4.0 -arch i386 -bundle -isysroot /Developer/SDKs/MacOSX10.5.sdk "-L/Users/user/Documents/Media/xCode/genericapp/work with this/genericapp/build/Debug" "-F/Users/user/Documents/Media/xCode/genericapp/work with this/genericapp/build/Debug" -filelist "/Users/user/Documents/Media/xCode/genericapp/work with this/genericapp/build/genericapp.build/Debug/genericapp.build/Objects-normal/i386/genericapp.LinkFileList" -mmacosx-version-min=10.5 -undefined define_a_way -framework Cocoa -o "/Users/user/Documents/Media/xCode/genericapp/work with this/genericapp/build/Debug/genericapp.bundle/Contents/MacOS/genericapp"
    ld: invalid option to -undefined [ warning | error | suppress | dynamic_lookup ]
    collect2: ld returned 1 exit status
    
     
  2. thread starter macrumors 6502

    Joined:
    Apr 27, 2005
    Location:
    Surfers Paradise
    #2
    Its not happening anymore, I copied the code into a new project, and the errors went away?:confused:
     

Share This Page