Dumb C problem (-ldes, libdes)

davidbrit2

Licensed Computer Geek
So I've got some really simple source code that does some basic DES related stuff, and it (obviously) uses libdes. However, attempting to compile with -ldes gives "ld: can't locate file for: -ldes". If I just specify "/usr/lib/libdes425.dylib" as another argument, it builds and runs okay. Of course, this doesn't work too well with Xcode, as I can't build and debug with compiler trickery like that. How can I get this thing to build properly with -ldes? I also just need to include <des.h>, correct?
 
Well, could you say -ldes425?

Alternately, you could softlink libdes.dylib to libdes425.dylib, but that doesn't help if your program has to run on other computers where you don't get to go making links willy nilly.
 
Back
Top