Message-ID: <19970820105803.55370@gil.physik.rwth-aachen.de> Date: Wed, 20 Aug 1997 10:58:03 +0200 From: Christoph Kukulies To: spector AT EnchantedLearning DOT com Cc: djgpp AT delorie DOT com Subject: Re: Mixing Win32 compiler with djgpp (Allegro, etc.) References: <33F6493E DOT 542B AT EnchantedLearning DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <33F6493E.542B@EnchantedLearning.com>; from Mitchell Spector on Sat, Aug 16, 1997 at 05:43:42PM -0700 Precedence: bulk On Sat, Aug 16, 1997 at 05:43:42PM -0700, Mitchell Spector wrote: > Does anybody know if it's possible to compile code using a Win32 > compiler and then link that code with some djgpp support routines, > ending up with a 32-bit protected-mode DOS program? (Needless to > say, the Win32 code wouldn't contain any Windows calls; I just want > to be able to use the language syntax of a particular Win32 compiler. > In other words, I'd just be using the Win32 compiler to produce > generic x86 code.) > > The reason I want to do this is I have some code written in Apple's > Object Pascal (not the same as Borland-style Object Pascal) which I > would like to port to a protected-mode DOS environment, using djgpp > for graphics and other custom support routines. Unfortunately, > there isn't a DOS compiler for Apple's Object Pascal, but there > is a Win32-based compiler (Metrowerks CodeWarrior). Using this > compiler would let me leave the original code unchanged, which > would be nice :-). The underlying graphics and other MacOS routines > that are called would be written using djgpp and Allegro, and > djgpp would have to be able to link the code produced by the Win32 > compiler with this djgpp code. > > It sounds like it should be possible to do this (32-bit x86 code > shouldn't care which compiler produced it), but a different object > file format may disturb the linker. > > Thanks in advance for any solutions, or for any other ideas on this. > > Mitchell > -- > Mitchell Spector, Enchanted Learning Software > E-mail: spector AT EnchantedLearning DOT com > Award-winning web site for children (Little Explorers, Zoom Dinosaurs, > Zoom Birds, Rebus Rhymes, and more): http://www.EnchantedLearning.com I believe that you cannot at no chance do that with djgpp. In your case I would recommend you give gnu-win32 a try. They are about to release beta 19 in September, beta 18 is current. see: http://www.cygnus.com/misc/gnu-win32/ -- --Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de