On Thu, Apr 19, 2012 at 2:32 PM, Srinivas Cherukumilli <
vasu_c@...> wrote:
>
>
> --- On Thu, 4/19/12, Earnie Boyd <
earnie@...> wrote:
>
>> From: Earnie Boyd <
earnie@...>
>> Subject: Re: [Mingw-users] How to create a relocatable dll with mingw
>> To: "MinGW Users List" <
mingw-users@...>
>> Date: Thursday, April 19, 2012, 11:00 AM
>> Do not top post.
>>
>> On Thu, Apr 19, 2012 at 1:45 PM, Srinivas Cherukumilli
>> <
vasu_c@...>
>> wrote:
>> >
>> > Thanks for the response Earnie,
>> >
>> > But, unfortunatley it does not work.
>> >
>> > gcc complains about the missing '.a'
>> > $ gcc -shared -o test1.dll test1.o --out-implib
>> libtest1.dll.a
>> > gcc.exe: libtest1.dll.a: No such file or directory
>> >
>>
>> Sorry it should be -Wl,--out-implib,libtest1.dll.a since it
>> is a linker option.
>
> Thanks again Earnie.
> Sorry about top posting. Not used to sending mails to forums.
> I still have issues with using the -Wl,relocatable and -shared options together.
>
> So, for the two commands you suggested:
> (1) gcc -shared -o bar.dll bar.o -Wl,--out-implib,libbar.dll.a
> (2) gcc -Wl,-relocatable -shared -o bar.dll bar.o -Wl,--out-implib,libbar.dll.a
>
> Step (1) works. Get linker errors for step (2). I hope I got all the options right in step (2).
>
Oh, sorry for the confusion. (///) --relocatable isn't usable with
-shared. You can use --embedded-relocs with -shared though.
--
Earnie
--
https://sites.google.com/site/earnieboyd------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2_______________________________________________
MinGW-users mailing list
MinGW-users@...
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-usersAlso: mailto:
mingw-users-request@...?subject=unsubscribe