cross-compiling (win16) help!

Dorian A. Monroe, II plug-discuss@lists.plug.phoenix.az.us
Fri, 23 May 2003 19:02:48 -0400


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