From: wsr23 AT stanford DOT edu (Will Robinson) Newsgroups: comp.os.msdos.djgpp Subject: linux->dos cross-compiler Date: 22 Aug 2001 20:52:25 -0700 Organization: http://groups.google.com/ Lines: 47 Message-ID: <8934b01a.0108221952.3032c4e6@posting.google.com> NNTP-Posting-Host: 209.213.198.25 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 998538745 23659 127.0.0.1 (23 Aug 2001 03:52:25 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 23 Aug 2001 03:52:25 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm trying (desperately, at this point) to build a linux->dos cross compiler with binutils-2.8.1, gcc-2.95.3, and djcrx203. I could probably change versions a bit if that would help, but it's essential that the compiler handle C, C++, and inline asm code correctly. In the past 48 hours, I've read so many docs, makefiles, and shell scripts that my head is spinning! I've tried building the cross-compiler in many different ways, with varying degrees of success, but haven't really gotten it right. The closest I've come is a compiler which works for simple hello.c and hello.cpp, but still has these problems: - It needs to be explicitly told the location of system includes like stdio.h - It chokes on something like: #include in C++. - Probably more stuff that I haven't stumbled upon yet. My question is: has anyone out there actually managed to build a working linux->dos cross-compiler from fairly recent versions of binutils and gcc?! Is there a kind soul out there willing to lend a hand to someone who stayed up all night thinking "I'll tweak the magic line in this magic script, and then it will just WORK" ? I would gladly welome pointers to up-to-date docs and tools, any tips from personal experience, even a two-line email that says "Yeah, it's definitely possible; I did it a month ago..." The details of my efforts have varied, but all the strategies basically revolve around the steps outlined at: http://www.delorie.com/howto/djgpp/linux-x-djgpp.html Thanks for any help you can offer, Will Robinson wsr23 AT stanford DOT edu