You are not logged in.

#1 2010-08-17 13:07:31

Netsu
Member
From: Poland
Registered: 2009-04-04
Posts: 182

GCC compatibility issues

Hi, I'm developing software using g++ for compilation, and I figured that the binaries I compile on my arch system (using the latest gcc, 4.5.1) can't run on systems with older gcc (for example on debian which uses 4.3).
So I search AUR for some older versions and found this: http://aur.archlinux.org/packages.php?ID=26807 but I have one question before I install it - will it replace my latest gcc build? Or will I be able to invoke my latest gcc version normally and the older package by some 'gcc43' command?
Thanks!


My Elegant Pattern GTK theme.
My game development blog, now on a new site.

'~/.xinitrc is an Archer's DE' - moljac024

Offline

#2 2010-08-17 13:20:45

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,487
Website

Re: GCC compatibility issues

The configure line has "--program-suffix=-${_ver}".   So you will run "gcc-4.3".   An older gcc will probably not be your only issue...

Offline

#3 2010-08-17 13:49:31

Netsu
Member
From: Poland
Registered: 2009-04-04
Posts: 182

Re: GCC compatibility issues

Thanks, and yes, distributing precompiled software for Linux is a pain, but currently I don't have any major problems aside from that one (I had to include stdc++ in the package for it to work on systems with older gcc) smile


My Elegant Pattern GTK theme.
My game development blog, now on a new site.

'~/.xinitrc is an Archer's DE' - moljac024

Offline

#4 2010-08-18 16:39:36

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: GCC compatibility issues

You can save yourself some hassle by linking with -static.  Static linking of libstdc++ may be a bit harder than others, but it can work, and that way you don't have to worry about version incompatibilities (at the cost of a possibly larger binary, etc.).

Offline

Board footer

Powered by FluxBB