Linker Command Failed With Exit Code 1?

Discussion in 'iPhone/iPad Programming' started by loon3y, Sep 5, 2012.

  1. macrumors 6502a

    Joined:
    Oct 21, 2011
    #1
    i dont know why i have this error, because the funny thing is, it compiled on my devices last week perfectly.


    i read that it might because im missing a framework, but im not missing any, nor did Product->Clean did not work as well as it was suggested


    here is the error : ld: library not found for -ldtdev
    clang: error: linker command failed with exit code 1 (use -v to see invocation)


    i've looked online but cant find a solution
     
  2. macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    Hmm, missing framework? Did you do a clean archive? removed all old builds? :)
    Did you try simulator, or only on iOS device?
     
  3. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #3
    Did you add this other linker flag: -ldtdev?

    It tells the linker to look for a library file with libdtdev as the root name (libdtdev.o, libdtdev.a, libdtdev.so) etc?

    What is that library? Is it in your project? Why can't the linker find it?

    In general I prefer to add libraries and frameworks directly to the project, rather than adding the -l flag.
     

Share This Page