From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: cross compilation from DOS to Linux possible with djgpp? Date: 17 Jan 2003 09:38:48 GMT Organization: Aachen University of Technology (RWTH) Lines: 16 Message-ID: References: NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1042796328 26517 137.226.32.75 (17 Jan 2003 09:38:48 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 17 Jan 2003 09:38:48 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Lars Hansen wrote: > is it possible to compile C(++) sourcecode with djgpp in DOS for Linux? It's not quite clear what your question is, but I'll assume you want to run DJGPP on DOS, and get executables that will be transferred to a Linux box and be able to run there. Answer to that is: "In principle, yes.". But not with stock DJGPP tools. DJGPP makes DOS executables. Those can run on Linux only by help of the 'dosemu' (or similar virtual machine systems). To get native Linux executables, you either have to do the compilation on Linux, too, or use a so-called cross-compiler. It might be possible to build one on DOS, but don't hold your breath. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.