OS/2, eCS & ArcaOS - Technical > Programming
OS/2 WARP Programming for Dummies by Blake Watson
Dave Yeo:
I found that the examples I tried didn't compile without fixes. That was using OpenWatcom. Should return to it but my copy is falling to pieces.
Dan Eicher:
Maybe because openwatcom vs watcom from 8watts?
Dave Yeo:
--- Quote from: Dan Eicher on July 31, 2025, 12:02:04 am ---Maybe because openwatcom vs watcom from 8watts?
--- End quote ---
Possibly, or perhaps my environment, it was quite a few years back and I can't remember if I used the Toolkit or the OW headers. Now I usually use the toolkits headers and libraries.
Martin Iturbide:
Hello.
Nobody asked for this, but I tried to compile Chapter 18 (GPI) with gcc and wrc. ยจ
Sadly it is compiling, but it does not run. Maybe the AI changed something on the OCR. But I had to remove the ACCELERATE stuff from the .RC.
Regards
Dave Yeo:
Quickly looking, the source takes a couple of pages in my book so I didn't feel like comparing it.
You need an #include <stdlib.h>, I put it after the #include<string.h>
I tried rc 4.00.011 and got,
--- Code: ---Creating binary resource file GPI.RES
RC: RCPP -E -D RC_INVOKED -W4 -f GPI.RC -ef W:\OS2\RCPP.ERR -I W:\usr\include\os2tk45\inc -I W:\usr\include\os2tk45\gl -I W:\usr\include\os2tk45
GPI.RC
GPI.RC(16) RC: error - undefined keyword or key name: ACCELERATE.
GPI.RC(16) RC: error - Resource Type keyword expected - '1000'.
RC: 2 errors detected
--- End code ---
Seems every RC has its own problems so figuring out the right one would be a good idea.
Navigation
[0] Message Index
[*] Previous page
Go to full version