Hi, this may be an easy question to answer but much searching of the lists hasn't given me anything... If you have suggestions, please help - I'm out of ideas.
I have a bunch of dylib's and the program starts up fine in a terminal shell & Xcode, but in gdb(shell or xcode), it cannot find the libraries (message is below).
- DYLD_LIBRARY_PATH is set properly. - (gdb) show env gives correct results. - the dylibs do exist and are freshly built.
(gdb) r Starting program: /Users/mlogan/dev/KrishnaKumar/NelFly/bin/nelfly dyld: Library not loaded: libProducer.dylib Referenced from: /Users/mlogan/dev/KrishnaKumar/NelFly/bin/nelfly Reason: image not found
Program received signal SIGTRAP, Trace/breakpoint trap. 0x8fe05eac in __dyld__ZN4dyld5_mainEPK11mach_headeriPPKcS5_S5_ ()
I tried to "info sharedlibrary all" in gdb, and got this output this particular dylib:
6 libProducer.dylib - - c-init Y Y /Users/mlogan/dev/KrishnaKumar/NelFly/bin/libProducer.dylib at 0x0 (objfile is) /Users/mlogan/dev/Producer_1.1/src/Darwin32.Opt/libProducer.dylib
but I don't understand what its telling me. The first line is the wrong path. Why the second line (the correct path) has no address?
Any ideas? I'm on gcc-4.0.1, xcode 2.4.1 (altho same problem with 2.2.1), and OSX 10.4.8 PPC (g5)
Mike
|