Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!ais.net!uunet!in1.uu.net!199.232.56.18!news.ultranet.com!bigboote.WPI.EDU!not-for-mail From: Frank Sweetser <rasmusin@paramount.res.wpi.edu> Newsgroups: comp.unix.bsd.misc,comp.os.linux.misc Subject: Re: Can one executable run on both Red Hat and BSDI? Date: 27 Apr 1997 14:12:39 -0400 Organization: Worcester Polytechnic Institute Lines: 23 Message-ID: <87rafwpc6g.fsf@paramount.res.wpi.edu> References: <335FC204.1090@activision.com> NNTP-Posting-Host: paramount.res.wpi.edu X-Newsreader: Gnus v5.3/Emacs 19.34 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.misc:3103 comp.os.linux.misc:172305 Dan Kegel <dkegel@activision.com> writes: > > Hi, > I'm writing a program that I'd like to distribute to > ISP's. The first platform I'm supporting is Red Hat Linux, > since it seems to be the best linux at the moment. > I'm getting requests to also support BSDI. > > Question: is it possible to compile a single executable to run > on both Red Hat Linux and BSDI? > In C, none that I know, unless you use the iBCS modules on linux. Your other options are to re-compile it for each platorm, write it in a scripting language, or to even to write it in java and distribute the bytecode. -- Windows: I can play Doom! |RedHat Linux 2.0.30 i486 Linux: I can be a file server, be a Web|Because reboots are for upgrades! server, run the accounting package with|finger rasmusin@paramount.res.wpi.edu twelve terminals AND play Doom! |for pgp key. frank sweetser pgp fingerprint = 79 26 EF D7 97 EC 50 AF 17 1F 39 D9 93 6F 04 D4