On Thu, Jun 12, 2003 at 11:05:34AM +0200, Patrick N�f wrote: > To find out the dependencies you can use otool, like this: > otool -L libfoo.dylib
Ok, thanks (also for the other reply on this subject). > gcc -o theprogram theprogram.o -L/sw/lib -lfoo /sw/lib/libfoo.a I'm wondering if this work, I suppose that you should put the "libfoo.a" before the "-lfoo" switch ... am I wrong? I was just trying what you proposed but it seems not to work, or at least the dependency on libfoo remains. Unforuntaly I'm not using directy the C compiler but the OCaml one and I'm trying to understand how can I convince him to pass the libfoo.a argument _before_ the "-lfoo" switch when invoking the linker ... Cheers. -- Stefano Zacchiroli -- Master in Computer Science @ Uni. Bologna, Italy [EMAIL PROTECTED],debian.org,bononia.it} - http://www.bononia.it/zack/ " I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant! " -- G.Romney ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users
