From: Mitchell Spector Newsgroups: comp.os.msdos.djgpp Subject: Mixing Win32 compiler with djgpp (Allegro, etc.) Date: Sat, 16 Aug 1997 17:43:42 -0700 Organization: Enchanted Learning Software Lines: 32 Message-ID: <33F6493E.542B@EnchantedLearning.com> Reply-To: spector AT EnchantedLearning DOT com NNTP-Posting-Host: mg-20425425-36.ricochet.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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