On Thu, 19 Apr 2012 14:30:20 -0700, Srinivas Cherukumilli wrote:
> >
> >
> > Hello Vasu,
> > You did not post your linker errors, but if your library
> > calls functions in otherlibraries, then you need to include
> > those libraries in your command line, for example (not
> > tested):
> > gcc -Wl,-relocatable -shared -o bar.dll bar.o
> > -Wl,--out-implib,libbar.dll.a -lOtherLib1 -lOtherLib2
> > Regards,John Brown.
>
> Hi John,
>
> The linker complains about using -relocatable and -shared together.
> I have pasted the errors below.
>
> gcc -Wl,--relocatable -shared -o test1.dll test1.o -Wl,--out-implib,libtest1.dll.a
> .../bin/../libexec/gcc/mingw32/4..1/ld.exe: -r and -shared may not be used together
> collect2: ld returned 1 exit status
>
> Thanks for your help.
> Vasu
Hello Vasu,
I see where you *did* post your error message earlier. Sorry about that.
Unfortunately, I do not have the answer.
Regards,
John Brown.
------------------------------------------------------------------------------
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