[4978] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Linking g++ object file from sparc to i386 running linux

daemon@ATHENA.MIT.EDU (Otto Hammersmith)
Mon Nov 18 12:44:49 1996

From: Otto Hammersmith <ohammers@cu-online.com>
To: redhat-list@redhat.com
Date: Mon, 18 Nov 1996 11:41:29 -0600 (CST)
In-Reply-To: <2.2.32.19961116015934.006d4394@im4u.net> from "James Leikert" at Nov 15, 96 08:59:34 pm
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

James Leikert wrote:
> 
> Is there any way to link an object file compiled on a sparc box to a file
> I'm writing in g++ on my linux box?

No.
 
> We have to do these assignments and link them to .o files generated on the
> university computer lab systems.

I hate it when they do that.

You have a few options...

Write your own stub functions and compile your own object files, then
port to the SPARC for the "real" thing.  Hopefully the behaviour of
the functions can be simulated easilly.

Use the SPARC exclusively... I'd do this, since it can be a pain
porting things... especially if your school (like mine did) uses an
outdated gcc with some patches to make C++ templates do some strange
things. 

Yell at them until they compile Linux binaries. :) Usually doesn't work.
-- 
					-Otto


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post