Unix Technical Forum

Older gcc using a library compiled with a different compiler?

This is a discussion on Older gcc using a library compiled with a different compiler? within the comp.unix.solaris forums, part of the Solaris Operating System category; --> I have an application that has me forced to use gcc 2.95.3 on solaris/ SPARC. I am wondering, is ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 05:55 AM
Mohan Khurana
 
Posts: n/a
Default Older gcc using a library compiled with a different compiler?

I have an application that has me forced to use gcc 2.95.3 on solaris/
SPARC. I am wondering, is there any problem with and older gcc like
this using a library that was compiled with gcc 3.4?

What if I get a version of this library compiled with sun pro? Is it
an issue then if I use this old gcc and attempt to call functions in
this library?

Thanks much,
mohan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 05:55 AM
Paul Pluzhnikov
 
Posts: n/a
Default Re: Older gcc using a library compiled with a different compiler?

Mohan Khurana <mohankhurana@gmail.com> writes:

> I have an application that has me forced to use gcc 2.95.3 on solaris/
> SPARC.


How can an application force you to do anything?
Did it put a gun to your head?

Now, if the app fails to compile with newer gcc, and you are too
lazy to fix its source so it does, that's another story.

> I am wondering, is there any problem with and older gcc like
> this using a library that was compiled with gcc 3.4?


If the library is "pure C", then it will most likely work.
If the library is "C++", it will not.

> What if I get a version of this library compiled with sun pro?


Exact same deal -- "C" will most likely work, "C++" -- no way.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com