* a question about shared library
@ 2004-08-16 11:02 webman.li
2004-08-16 15:41 ` John Love-Jensen
0 siblings, 1 reply; 4+ messages in thread
From: webman.li @ 2004-08-16 11:02 UTC (permalink / raw)
To: gcc-help
hi,
I have compiled a shared library using g++ on solaris.
I use Sun's linker to link this library with other objs and libs that are compiled by SUN's CC compiler.It is failed.
Are libs compiled using g++ can not be linked,using SUN's linker, with libs & objs compiled by SUN's CC??
thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: a question about shared library
2004-08-16 11:02 a question about shared library webman.li
@ 2004-08-16 15:41 ` John Love-Jensen
0 siblings, 0 replies; 4+ messages in thread
From: John Love-Jensen @ 2004-08-16 15:41 UTC (permalink / raw)
To: webman.li, gcc-help
Hi,
>Are libs compiled using g++ can not be linked,using SUN's linker, with libs &
objs compiled by SUN's CC??
Correct. Use GNU's binutil's linker "ld".
HTH,
--Eljay
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: a question about shared library
@ 2004-08-16 17:04 lrtaylor
0 siblings, 0 replies; 4+ messages in thread
From: lrtaylor @ 2004-08-16 17:04 UTC (permalink / raw)
To: eljay, webman.li, gcc-help
Actually, the problem is probably due to the fact that he is using two
different compilers (g++ and CC) than because he's using Sun's linker.
C++ code compiled with g++ is not compatible with C++ code compiled with
Sun's compilers. The linker you use can make a difference, but I don't
think that's your problem in this case.
Thanks,
Lyle
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of John Love-Jensen
Sent: Monday, August 16, 2004 5:16 AM
To: webman.li; gcc-help@gcc.gnu.org
Subject: Re: a question about shared library
Hi,
>Are libs compiled using g++ can not be linked,using SUN's linker, with
libs &
objs compiled by SUN's CC??
Correct. Use GNU's binutil's linker "ld".
HTH,
--Eljay
^ permalink raw reply [flat|nested] 4+ messages in thread
* a question about shared library
@ 2004-08-14 3:11 webman.li
0 siblings, 0 replies; 4+ messages in thread
From: webman.li @ 2004-08-14 3:11 UTC (permalink / raw)
To: gcc-help
hi,
I have compiled a shared library using G++ on solaris.
I use Sun's linker to link this library with other objs and libs that are compiled using SUN's CC compiler.It is failed.
Is libs compiled using G++ can not be linked,using SUN's linker, with libs & objs compiled using SUN's CC??
thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-16 16:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-16 11:02 a question about shared library webman.li
2004-08-16 15:41 ` John Love-Jensen
-- strict thread matches above, loose matches on Subject: below --
2004-08-16 17:04 lrtaylor
2004-08-14 3:11 webman.li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).