delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/23/18:45:16

From: bpmurray*STUFFER*@socrates.cgl.ucsf.EDU (Bernard P. Murray, PhD)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Developing for Linux
Date: Wed, 23 Dec 1998 13:37:21 -0800
Organization: University of California, San Francisco
Lines: 29
Message-ID: <bpmurray*STUFFER*-2312981337210001@mac-daddy.ucsf.edu>
References: <199812230908 DOT XAA17600 AT v1 DOT vision1 DOT net>
NNTP-Posting-Host: mac-daddy.ucsf.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <199812230908 DOT XAA17600 AT v1 DOT vision1 DOT net>, Paul Masters wrote:

> I was wondering can I use DJGPP to develop a program for Linux 
> using DJGPP for DOS? If so, do I need any extras? I downloaded 
> all the libraries, DJGPP 2.02, and RHIDE. Do I need anything else 
> if I am going to develop for Linux? Can I run the program for Linux 
> on DOS? Thank you for your help.
>         -Paul

If you mean "will my gcc/perl/awk/bash etc. code, developed and tested
using DJGPP compile and run with Linux?" then almost definitely
(unless you are using DJGPP-specific code eg. to play with the
hardware).  I do this all the time and then drag the code to work
to run on the SGI's here (and the Perl and awk code runs on the Mac!).
There are a few "gotchas" eg. unix to DOS carriage returns but
otherwise its easy to write very portable code (although I haven't
written anything terribly complicated).  If you want to write
things for X you are probably out of luck - although there is a
pseudo-X library for DJGPP available.

If you are asking about using gcc as a cross-compiler to produce
binaries for an i386 target by compiling with DJGPP I have no
idea (I am only a humble pharmacologist).

     Nollaig shona daoibh!,
          Bernard
-- 
Bernard P. Murray, PhD
Dept. Cell. Mol. Pharmacol., UCSF, San Francisco, USA

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019