Unix Programming - linking against Sun CC libs with g++.

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > March 2004 > linking against Sun CC libs with g++.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author linking against Sun CC libs with g++.
Shea Martin

2004-03-15, 5:35 pm

We have a bunch of statically linking libraries built with WorkShop 5.0
CC. Is it possible to to build programs against these libraries using
g++ (3.x).

I was recently told this is possible, though I can't even link a CC *.o
when using g++.

~S

Paul Pluzhnikov

2004-03-15, 6:35 pm

Shea Martin <smartin@arcis.com> writes:

> We have a bunch of statically linking libraries built with WorkShop
> 5.0 CC. Is it possible to to build programs against these libraries
> using g++ (3.x).


No: different C++ compilers are not link-compatible.

> I was recently told this is possible


Whoever told you that either did not know what he is talking about,
or you mis-understood what he was telling you. Ask him again, and
if he insists this is possible, ask him to help you get it working.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Casper H.S. Dik

2004-03-16, 4:35 am

Shea Martin <smartin@arcis.com> writes:

>We have a bunch of statically linking libraries built with WorkShop 5.0
>CC. Is it possible to to build programs against these libraries using
>g++ (3.x).


No. Everything is different:

name mangling
structure/class/virtual function layout
constructors/destructors/exception handling


Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com