Draft Notes about PM Compiling

From OS2World.com Wiki
Jump to: navigation, search


Trying just GCC with CHAPTER 2 Samples [1]


[C:\projects\DEV-SAMPLES-PM-PM_Programing\chap02]gcc -o WELCOM.EXE WELCOM.C
WELCOM.C: In function 'int main()':
WELCOM.C:29:22: error: invalid conversion from 'CHAR* {aka char*}' to 'PCSZ {aka
 const unsigned char*}' [-fpermissive]
                     0) ;                // Extra bytes to reserve
                      ^
In file included from C:/usr/include/os2.h:39:0,
                 from WELCOM.C:6:
C:/usr/include/os2emx.h:6138:15: note: initializing argument 2 of 'BOOL WinRegis
terClass(HAB, PCSZ, PFNWP, ULONG, ULONG)'
 BOOL APIENTRY WinRegisterClass (HAB hab, PCSZ pszClassName, PFNWP pfnWndProc,
                ^
WELCOM.C:40:32: error: invalid conversion from 'CHAR* {aka char*}' to 'PCSZ {aka
 const unsigned char*}' [-fpermissive]
                     &hwndClient) ;      // Pointer to client window handle
                                ^
In file included from C:/usr/include/os2.h:39:0,
                 from WELCOM.C:6:
C:/usr/include/os2emx.h:6002:15: note: initializing argument 4 of 'HWND WinCreat
eStdWindow(HWND, ULONG, PULONG, PCSZ, PCSZ, ULONG, HMODULE, ULONG, PHWND)'
 HWND APIENTRY WinCreateStdWindow (HWND hwndParent, ULONG flStyle,
               ^