Re: Linking GCC compiled shared library using SunStudio



On Nov 3, 2:08 pm, Doug McIntyre <mer...@xxxxxxxxx> wrote:
"adisa...@xxxxxxxxx" <adisa...@xxxxxxxxx> writes:
I have big problem,
I have just compiled my libraries with g++ 3.4 and it works well, but
I need to plugin that libraries inside Sun studio compiled
application.
Now I can NOT use the Sun workshop to compile my shared libraries
becasue there is an official bug and it did not compile it.
So please do you know if there is just a way to link the g++ shared
libraries in Sun studio application ?

There's no way to have portable C++ libraries because every
compiler mangles the symbols differently.

That's not really the issue. The reason here is that Sun CC and
g++ lay out classes (vtable, etc.) differently. All the name
mangling means is that you get the error at link time, rather
than a mysterious crash at runtime.

--
James Kanze (GABI Software) email:james.kanze@xxxxxxxxx
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
.



Relevant Pages

  • Linking GCC compiled shared library using SunStudio
    ... I need to plugin that libraries inside Sun studio compiled ... Now I can NOT use the Sun workshop to compile my shared libraries ...
    (comp.unix.programmer)
  • Re: Linking GCC compiled shared library using SunStudio
    ... I need to plugin that libraries inside Sun studio compiled ... Now I can NOT use the Sun workshop to compile my shared libraries ...
    (comp.unix.programmer)
  • Re: Linking GCC compiled shared library using SunStudio
    ... I need to plugin that libraries inside Sun studio compiled ... becasue there is an official bug and it did not compile it. ... I'm afraid you'll have to work around whatever bug in SunStudio you've ...
    (comp.unix.programmer)
  • Re: static libraries
    ... Did Static-Linked Libraries in exe ever get ... If the library was compiled with optimization enabled, then the ... optimized at link time along with the application (possibly in addition to ... optimization at compile time, depending on other settings). ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Carrying Libraries on Your Back...
    ... > Why not build on an installed based of assemblies, ... > than porting libraries around, ... download source code ... compile local source against header files ...
    (microsoft.public.dotnet.languages.vb)