linking against Sun CC libs with g++.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > linking against Sun CC libs with g++.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-15-04 10: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






[ Post a follow-up to this message ]



    Re: linking against Sun CC libs with g++.  
Paul Pluzhnikov


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-15-04 11: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.





[ Post a follow-up to this message ]



    Re: linking against Sun CC libs with g++.  
Casper H.S. Dik


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-16-04 09: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.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:38 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register