TIP: Click on subject to list as thread! ANSI
echo: public_domain
to: David Drummond
from: Paul Edwards
date: 1996-03-19 09:01:44
subject: GNU C++ for DOS

DD> Is there a GNU C++ compiler etc for DOS?

DD> If so, where might I find it?

Indeed there is.  I have installed this at work (which uses DOS),
but I can't remember if I had to do anything different to the
OS/2 installation, but here's the one I wrote to install for OS/2...


To get a free compiler (ie GNU C compiler with EMX libraries),
that you can use to develop your commercial applications under
OS/2 without restriction (so long as you only use the EMX C 
library unmodified), do the following (assuming you are 
installing on the C drive, and you have OS/2 installed):

FREQ INSTALL.DOC, EMXRT.ZIP, EMXDEV.ZIP, GNUDEV1.ZIP,
GNUDEV2.ZIP, GPPDEV.ZIP (only if you want to 
use C++) and GOBJCDEV.ZIP (only if you want to use objective 
C - hint, you don't) from 3:711/934.  Also EMXFIX01.ZIP.

You then simply go to c:\ and unzip (not pkunzip) the above
archives.  EMXFIX01.ZIP should be the last one unzipped.

Then you add the following three statements to your config.sys:

    set C_INCLUDE_PATH=c:/emx/include
    set LIBRARY_PATH=c:/emx/lib
    set CPLUS_INCLUDE_PATH=c:/emx/include/cpp;c:/emx/include

Then you add c:\emx\dll to your LIBPATH, and c:\emx\bin to
your PATH.

Then you reboot your machine.

Then you go into c:\emx\lib and type "omflibs".

Then you compile your C program called world.c by going
gcc -Zsys -Zomf -Zlinker "/pm:vio" -o world.exe world.c

Then you compile your C++ program called world.cpp by going
gcc -Zsys -Zomf -Zlinker "/pm:vio" -liostream -o world.exe world.cpp

These will make a stand-alone executables that can be run
under OS/2.  

And that's it!  GNU/EMX takes up 13 meg of disk space.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.