TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Thomas Seeling
from: Mike Burgett
date: 1996-11-06 16:30:08
subject: C Compiler

Hi Thomas,

Replying to a message of Thomas Seeling to Andrew Grillet:

 TS> Your only choice is emx+gcc, if you really need _one_ executable for
 TS> both systems. If you are free to distribute two executables you can
 TS> use Watcom to compile a Dos and an OS/2 version.

PMFJI, but technically, IBM compilers (cset, vac++, other vendors too?)
will let you replace the stub in an os/2 program (the one that tells you
it's an os/2 program when you run it in dos) with a useful program.  I've
used this trick a couple of times to generate my dos .exe with msc5, and
then create one .exe file with both executables in it, that will run from
dos or os/2.

Thanks,
Mike

--- FleetStreet 1.17+
* Origin: Common Sense BBS - 510.713.7336 Newark, CA (1:215/705)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 215/705 270/101 712/515 711/808 934

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