This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Help for shared library(Sun CC and GCC)


Thank you. I'll try it.


    > -----Original Message-----
    > From: Ian Lance Taylor [mailto:iant@google.com]
    > Sent: Friday, December 29, 2006 8:46 AM
    > To: Zhao Li,SCNB R&D NC(BJ)
    > Cc: gcc-help@gcc.gnu.org
    > Subject: Re: Help for shared library(Sun CC and GCC)
    > 
    > "Zhao Li,SCNB R&D NC(BJ)" <zhaoli@siemens.com> writes:
    > 
    > > Still want to ask, do GCC have special compile or link flags
    > > (additionally, plus the cooperation of programming) to make it
    > > linked library be used by CC linked program?
    > 
    > No.
    > 
    > Your only hope is to write an extern "C" interface for the library, if
    > possible, and compile it with Sun CC.  Then you can call those
    > routines from code compiled by gcc.
    > 
    > Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]