* Linking library compiled with Forte and GCC!
@ 2004-11-24 18:17 Tan, Ryan
2004-11-25 8:02 ` Philippe Haution
0 siblings, 1 reply; 3+ messages in thread
From: Tan, Ryan @ 2004-11-24 18:17 UTC (permalink / raw)
To: 'gcc-help@gcc.gnu.org'
Hello,
I am new to GCC community. I hope someone can help me.
Is it still true that there is no way I can link
the library compiled with different compilers?
I searched thru the mailing list and found one thread
from 1999.
My environment:
GCC 3.4.2 on Solaris 5.8.
Forte v6u2 C++ compiler.
I have a file (A.cc) using CNI to call Java class compiled in g++ 3.4.2.
I have other file (B.cc) that call the class in A.cc compiled using Forte
compiler.
I created the library (libA.a) from the above object files.
Now I created an application App.cc (compiled using Forte) that links the
libA.a
but got a link error with undefined symbol in B.o
I have compiled everything with GCC compiler that it works. I was wondering
if
I can use the Forte compiler since I don't want to limit the customer to use
the same compiler.
Thanks in advance!
-ryan-
-ryan-
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linking library compiled with Forte and GCC!
2004-11-24 18:17 Linking library compiled with Forte and GCC! Tan, Ryan
@ 2004-11-25 8:02 ` Philippe Haution
0 siblings, 0 replies; 3+ messages in thread
From: Philippe Haution @ 2004-11-25 8:02 UTC (permalink / raw)
To: Tan, Ryan, 'gcc-help@gcc.gnu.org'
Hello,
Yes, that's true. There is no standard as far as the
ABI is concerned so there is no way for a linker to
understand a C++ symbol generated by another compiler.
That's why commercial C++ libraries are provided with
the requirement to use a certain type of compiler (and
sometimes a certain range of version since the ABI can
change between versions of the same compiler).
Regards,
--- "Tan, Ryan" <ryantan@drs-c4i.com> a écrit :
> Hello,
>
> I am new to GCC community. I hope someone can help
> me.
> Is it still true that there is no way I can link
> the library compiled with different compilers?
> I searched thru the mailing list and found one
> thread
> from 1999.
>
> My environment:
> GCC 3.4.2 on Solaris 5.8.
> Forte v6u2 C++ compiler.
>
> I have a file (A.cc) using CNI to call Java class
> compiled in g++ 3.4.2.
> I have other file (B.cc) that call the class in A.cc
> compiled using Forte
> compiler.
> I created the library (libA.a) from the above object
> files.
>
> Now I created an application App.cc (compiled using
> Forte) that links the
> libA.a
> but got a link error with undefined symbol in B.o
>
> I have compiled everything with GCC compiler that it
> works. I was wondering
> if
> I can use the Forte compiler since I don't want to
> limit the customer to use
> the same compiler.
>
> Thanks in advance!
>
> -ryan-
>
> -ryan-
>
Vous manquez dÂespace pour stocker vos mails ?
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. A télécharger gratuitement sur http://fr.messenger.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Linking library compiled with Forte and GCC!
@ 2004-11-29 12:39 Tan, Ryan
0 siblings, 0 replies; 3+ messages in thread
From: Tan, Ryan @ 2004-11-29 12:39 UTC (permalink / raw)
To: 'Philippe Haution', 'gcc-help@gcc.gnu.org'; +Cc: Doyle, Dustin
Philippe,
Thank you for your clarification!
Regards,
-ryan-
-----Original Message-----
From: Philippe Haution [mailto:philippe_haution@yahoo.fr]
Sent: Thursday, November 25, 2004 3:02 AM
To: Tan, Ryan; 'gcc-help@gcc.gnu.org'
Subject: Re: Linking library compiled with Forte and GCC!
Hello,
Yes, that's true. There is no standard as far as the
ABI is concerned so there is no way for a linker to
understand a C++ symbol generated by another compiler.
That's why commercial C++ libraries are provided with
the requirement to use a certain type of compiler (and
sometimes a certain range of version since the ABI can
change between versions of the same compiler).
Regards,
--- "Tan, Ryan" <ryantan@drs-c4i.com> a ecrit :
> Hello,
>
> I am new to GCC community. I hope someone can help
> me.
> Is it still true that there is no way I can link
> the library compiled with different compilers?
> I searched thru the mailing list and found one
> thread
> from 1999.
>
> My environment:
> GCC 3.4.2 on Solaris 5.8.
> Forte v6u2 C++ compiler.
>
> I have a file (A.cc) using CNI to call Java class
> compiled in g++ 3.4.2.
> I have other file (B.cc) that call the class in A.cc
> compiled using Forte
> compiler.
> I created the library (libA.a) from the above object
> files.
>
> Now I created an application App.cc (compiled using
> Forte) that links the
> libA.a
> but got a link error with undefined symbol in B.o
>
> I have compiled everything with GCC compiler that it
> works. I was wondering
> if
> I can use the Forte compiler since I don't want to
> limit the customer to use
> the same compiler.
>
> Thanks in advance!
>
> -ryan-
>
> -ryan-
>
Vous manquez d'espace pour stocker vos mails ?
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Creez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
Le nouveau Yahoo! Messenger est arrive ! Decouvrez toutes les nouveautes
pour dialoguer instantanement avec vos amis. A telecharger gratuitement sur
http://fr.messenger.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-11-29 12:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-24 18:17 Linking library compiled with Forte and GCC! Tan, Ryan
2004-11-25 8:02 ` Philippe Haution
2004-11-29 12:39 Tan, Ryan
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).