cross-compiling (win16) help!

Liberty Young plug-discuss@lists.plug.phoenix.az.us
23 May 2003 19:20:11 -0700


Alan,

I'm running TurboC 3.0 (Turbo C for 16 bit DOS applications, no way no
how will it run in Windows or any 32bit OS) from my Linux box with
dosemu and freedos. 

If you need to compile the program to run in DOS only (not windows), i
can compile it for you. If you are going to use Turbo C 4 that runs in
dos, not windows, then email me and i'll try to help you set up dosemu
with freedos...otherwise, for a true cross platform solution, Visual
Studio or Turbo C 5 with wine. 




On Fri, 2003-05-23 at 19:00, Alan Dayley wrote:
> On Friday 23 May 2003 04:02 pm, Dorian A. Monroe, II wrote:
> > Hi Folks!
> >
> > I'm working on a little C++ app for a project I'm doing.  I've written the
> > code the way I want it, and it works just fine for me under Linux (Mandrake
> > 9.1, fairly vanilla install).  Unfortunately, I need it to run under DOS,
> > and I don't know compiler/linker options well at all, or even how to begin
> > cross-compiling for a Win16 environment.
> >
> > I've even moved the app over to MS VC++ 6.0, but I'm still too much of a
> > dummy to be able to create a Win16 app in there.  The executable size is
> > still waaaay too big for my needs anyhow.  It needs to be oh, as small as
> > possible, and stripping out the default compiler & linker options in VC++,
> > I can only get the exe down to about 150k.  I have less than 2k of code,
> > including comments.
> >
> > My other option is to dig out my copy of Borland C++ 5.0 on 50 or so floppy
> > disks and compile it from that.  I'd be willing to email my source if
> > someone wants to compile it for me!  Or let me know what compiler & linker
> > options or packages I'd need to install to be able to do it myself from my
> > Mandrake box would be fine too.  Give a man a fish, you feed him for a day.
> >  Teach him how to fish...  :)    Thanks in advance!!
> >
> >   -- Dorian
> 
> First, you may want to post this to the plug-devel email list.  It's where the 
> developers and programmers hang out.
> 
> You need define the MS based target platform better.  First you said you want 
> it to run on DOS and then you talked about Win16.  It is also possible to 
> compile it as a 32 bit DOS application which means it has to run under 
> Windows 95 or newer but runs in a DOS screen without a GUI.
> 
> Anyway, start by specifying these parameters:
> 16-bit or 32-bit? MS Visual C++ 6.0 CANNOT make a 16-bit application.  (That's 
> correct, cannot.)  Version 1.5 was the last version to do 16-bit apps.
> 
> DOS or GUI?
> 
> Do you have to use MS tools or do you want to use others?  I believe there are 
> a few open source or Free Software tools to compile DOS applications.
> 
> From there, more help is possible.
> 
> Alan
> 
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss