Re: gcc -dymanic? or -shared?
Re: gcc -dymanic? or -shared?
- Subject: Re: gcc -dymanic? or -shared?
- From: Steve Checkoway <email@hidden>
- Date: Wed, 08 Feb 2006 12:39:11 -0800
email@hidden wrote:
I am trying to create a shared library. I have my library source and I can
compile it like:
gcc -c MySharedLibrary.c
then:
gcc -dynamic -o MySharedLibrary.dylib MySharedLibrary.o
then try to link a simple .c program against my library I get:
jason-t-slacks-power-mac-g4-agp-graphics:~/Desktop slack$ gcc -o myprog main.c
-L./ -lMySharedLibrary.dylib
/usr/bin/ld: can't locate file for: -lMySharedLibrary.dylib
collect2: ld returned 1 exit status
Can anybody explain why? everything is in the same directory.
Name your library libMySharedLibrary.dylib.
- Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden