Anyway to do a compile c++ on 8.04 to run on 6.04

Nils Kassube kassube at gmx.net
Sat Sep 20 05:09:24 UTC 2008


James Gray wrote:
> On 20/09/2008, at 1:52 PM, Linda Hanigan wrote:
> > Is there anyway to compile c++ programs on 8.04 LTS to run on 6.04
> > LTS.
> > I won't be ready to upgrade our business computers for another month,
> > but I would like to try some new stuff I am compiling so I can get
> > some
> > feedback. Can you compile to run with the older libraries?
>
> If you dynamically link your binary, then there's a very good chance
> it wont work.  Especially if the API of those libraries is different
> between 6.04 and 8.04 (likely).  So the only option, really, is to
> statically link your binary.

There are other options: I would either install the compiler and 
necessary -dev packages on one of the 6.06 machines, or if that isn't 
possible I would install 6.06 in a virtual machine on top of 8.04.


Nils




More information about the ubuntu-users mailing list