TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: Jeff Green
from: Paul Edwards
date: 1995-03-21 00:52:18
subject: debugging

JG> I grabbed a copy of btpe301.zip last night. Is the executable in that 
JG> capable of getting the debug info or do I have to recompile?

You have to recompile to get it.  You can recompile easily 
enough if you get BTPE302.ZIP and install EMX.  I have the
docs to install EMX here...

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 and GOBJCDEV.ZIP from 3:711/934.

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

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

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 compile your C program called world.c by going
gcc -Zsys -Zomf -Zlinker "/pm:vio" -o world.exe world.c

That will make a stand-alone executable that can be run
under OS/2.  

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

---
* Origin: This is just another kludge line like SEENBY (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™.