Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

loon3y

macrumors 65816
Original poster
Oct 21, 2011
1,235
126
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
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.