TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Erik Wachtmeester
from: Paul Edwards
date: 1995-09-26 23:49:34
subject: Installing EMX 0.9a

EW> Has anyone been successful in installing EMX 0.9a/GCC 2.6?

Yes, and I've gone to a lot of effort to create a cheat sheet,
which I even have stuck on my wall at work...



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, GNUDEV.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.

You then simply go to c:\ and unzip (not pkunzip) the above
archives.

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 12 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™.