Xref: utzoo comp.os.os2.misc:443 comp.os.os2.programmer:326 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!unido!fauern!lan!rommel From: rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) Newsgroups: comp.os.os2.misc,comp.os.os2.programmer Subject: Re: PM Programming, PM SDK, and MS C600 Message-ID: <5931@tuminfo1.lan.informatik.tu-muenchen.dbp.de> Date: 6 Dec 90 09:06:19 GMT References: <1990Dec05.210500.16571@eecs.wsu.edu> Sender: news@lan.informatik.tu-muenchen.dbp.de Reply-To: rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) Followup-To: comp.os.os2 Organization: Inst. fuer Informatik, TU Muenchen, Germany Lines: 24 In article <1990Dec05.210500.16571@eecs.wsu.edu> wbonner@eecs.wsu.edu (Wim Bonner) writes: >Actually, I just trioed some more with my previous problem with the >Star5.c code from petzolds book. It seems that I CAN do it with the >C6 header files, I only run into problems when I am trying to do the >stuff from within PWB instead of using a seperate make file. > >It dies on line 21 of the os2def.h file with 2 errors: C2054 and C2059. Look for the -Za and -Ze C 6.00 options. The line 21 of os2def.h contains the "far" keyword which is only available when -Ze is specified. The "far" keyword was used with C 5.1 while C 6.00 provides a new keyword "_far" for the same purpose for ANSI compatibility with a leading underscore. The older "far" keyword is still available for upward compatibility but only when -Ze is specified to CL. Therefore you should look for "ANSI compatiblity" or a similar named option in the PWB menus (I don't have the name in mind) and set it correctly. Kai Uwe Rommel -- /* Kai Uwe Rommel * Munich * rommel@lan.informatik.tu-muenchen.dbp.de */