TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Barrie Hiern
from: Daniel Morgan
date: 1995-11-28 03:58:24
subject: EMX 0.9A GCC OS/2 Compiler problem

Barrie Hiern wrote in a message to Daniel Morgan:

 BH> Hey Daniel,

 BH> Reading your post about what you did to get emx to work it
 BH> looks as if you might have left out a couple of steps.  What
 BH> I did was pull the INSTALL.DOC file into my editor and then
 BH> delete everything that wasn't supposed to be on the CLI.  I
 BH> know there are at least 3 .cmd files that have to be run. 

I solved the problem by only putting C:\EMX;C:\EMX\BIN in the 
PATH statement...

However, I ran into other problems when trying to compile/link an OS/2
Presentation Manager executable.

This was forgotten for those that want 
to make a Presentation Manager executable:
    set INCLUDE=C:\EMX\INCLUDE;C:\EMX\INCLUDE\CPP
Also:
    set TEMP=C:\TEMP
This was not in the docs above. (that I know of...)  :(
It allows the OS/2 RC (resource compiler) to be able to find the OS2.H
header files.  This drove me insane for awhile...
Also, when running RC, use these two switches:
  -i    This switch let's RC use the INCLUDE path in the CONFIG.SYS
  -r    This switch is used by RC to tell it to make a binary .RES file
        which can be linked in later.
Example:
  c:
  cd\emx\test
  rc -i -r pm2.rc
  gcc -o test.exe test.def test.res -Zomf

The above will produce a OS/2 Presentation Manager program; it, however,
uses the EMXxxx.DLLs.

 BH> Can't remember where/what the 3 .cmd files are but if you're
 BH> still having problems when Monday rolls around netmail me
 BH> and I'll know by then.  Can't get to my machine except via
 BH> modem until then.

 emxinst
This creates a folder containing icons for EMX on-line books
  cd\emx\lib
  omflibs        
This builds the *.lib files.

The other two are not necessary.  Unless you have a problem with HPFS or FAT.

 BH> Good Luck,
 BH> Barrie
 BH>  - Origin: HandFull_BBS (1:209/342)

BTW, I was so excited about finally being about to create a PM executable,
that I couldn't help replying to this message in this mannger.  So, excuse
me...  :>

 - Dan 
--- timEd/2 1.01
* Origin: Silver Sun BBS * Columbia,SC,USA * 803-929-0480 (1:376/194)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809
@PATH: 376/194 178 3615/50 396/1 270/101 712/515 711/808 809 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™.