Re: gcc -dymanic? or -shared?
Re: gcc -dymanic? or -shared?
- Subject: Re: gcc -dymanic? or -shared?
- From: email@hidden
- Date: Wed, 08 Feb 2006 13:50:31 -0700
Hi Chris,
Can anybody explain why? everything is in the same directory.
Because if you want to use -l, the convention is that your library
has to be named libMySharedLibrary.dylib.
Change the -o line in the gcc -dynamic invocation.
Now I get:
jason-t-slacks-power-mac-g4-agp-graphics:~/Desktop slack$ gcc -c
MySharedLibrary.c
jason-t-slacks-power-mac-g4-agp-graphics:~/Desktop slack$ gcc -dynamic -o
MySharedLibrary.dylib MySharedLibrary.o
jason-t-slacks-power-mac-g4-agp-graphics:~/Desktop slack$ gcc -o myprog main.c
-L./ MySharedLibrary.dylib
/usr/bin/ld: MySharedLibrary.dylib is input for the dynamic link
editor, is not
relocatable by the static link editor again
collect2: ld returned 1 exit status
And I dont see why, I have never done this before.
Any more thoughts?
-Jason
_______________________________________________
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