Proper setup for gcc - OS2

This is a discussion on Proper setup for gcc - OS2 ; I hit the next problem as I now need OS2TK headers: gcc -c -Wall -Werror -I..\gbm -I..\gbmv_pm\gbmdlg -IE:\Development\OS2TK45\h -mcpu=i686 -m32 -O3 -Zomf -DOS2 -DUSE_OS2_TOOLKIT_HEADERS -DNDEBUG rexxhlp.c In file included from E:/Development/OS2TK45/h/os2.h:33, from rexxhlp.c:16: E:/Development/OS2TK45/h/os2def.h:99: error: parse error before "PUCHAR16" E:/Development/OS2TK45/h/os2def.h:99: ...

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 21 to 22 of 22

Thread: Proper setup for gcc

  1. Re: Proper setup for gcc

    I hit the next problem as I now need OS2TK headers:

    gcc -c -Wall -Werror -I..\gbm -I..\gbmv_pm\gbmdlg -IE:\Development\OS2TK45\h -mcpu=i686 -m32
    -O3 -Zomf -DOS2 -DUSE_OS2_TOOLKIT_HEADERS -DNDEBUG rexxhlp.c
    In file included from E:/Development/OS2TK45/h/os2.h:33,
    from rexxhlp.c:16:
    E:/Development/OS2TK45/h/os2def.h:99: error: parse error before "PUCHAR16"
    E:/Development/OS2TK45/h/os2def.h:99: warning: type defaults to `int' in declaration of `PUCHAR16'
    E:/Development/OS2TK45/h/os2def.h:99: warning: data definition has no type or storage class
    E:/Development/OS2TK45/h/os2def.h:100: error: parse error before "PCHAR16"
    E:/Development/OS2TK45/h/os2def.h:100: warning: type defaults to `int' in declaration of `PCHAR16'
    E:/Development/OS2TK45/h/os2def.h:100: warning: data definition has no type or storage class
    E:/Development/OS2TK45/h/os2def.h:138: error: parse error before "PVOID16"
    E:/Development/OS2TK45/h/os2def.h:138: warning: type defaults to `int' in declaration of `PVOID16'
    E:/Development/OS2TK45/h/os2def.h:138: warning: data definition has no type or storage class
    E:/Development/OS2TK45/h/os2def.h:144: error: parse error before "PBOOL16"
    E:/Development/OS2TK45/h/os2def.h:144: warning: type defaults to `int' in declaration of `PBOOL16'
    E:/Development/OS2TK45/h/os2def.h:144: warning: data definition has no type or storage class
    In file included from rexxhlp.c:17:
    E:/Development/OS2TK45/h/rexxsaa.h:534: error: syntax error before "struct"
    E:/Development/OS2TK45/h/rexxsaa.h:544: error: syntax error before "struct"
    E:/Development/OS2TK45/h/rexxsaa.h:546: error: parse error before "RXFNC_FLAGS"
    E:/Development/OS2TK45/h/rexxsaa.h:546: warning: no semicolon at end of struct or union
    ....


    Looks like gcc doesn't like _Seg16 statement.
    Any idea how this can be resolved?

  2. Re: Proper setup for gcc

    My vague rememberance is you need to get the emx documentation and look up
    the THUNK macros that are described in there.
    I fear you either need to use the emx include files (and add what's missing
    for your own purpose) or you need to add THUNK specifications for the _Seg16
    prefixed data types you mention below. I guess the 1.st approach will be
    much easier.

    Lars



    "Heiko Nitzsche" schrieb im Newsbeitrag
    news:48d4f2a0$0$6563$9b4e6d93@newsspool4.arcor-online.net...
    >I hit the next problem as I now need OS2TK headers:
    >
    > gcc -c -Wall -Werror -I..\gbm -I..\gbmv_pm\gbmdlg -IE:\Development\OS2TK45\h
    > -mcpu=i686 -m32
    > -O3 -Zomf -DOS2 -DUSE_OS2_TOOLKIT_HEADERS -DNDEBUG rexxhlp.c
    > In file included from E:/Development/OS2TK45/h/os2.h:33,
    > from rexxhlp.c:16:
    > E:/Development/OS2TK45/h/os2def.h:99: error: parse error before "PUCHAR16"
    > E:/Development/OS2TK45/h/os2def.h:99: warning: type defaults to `int' in
    > declaration of `PUCHAR16'
    > E:/Development/OS2TK45/h/os2def.h:99: warning: data definition has no type
    > or storage class
    > E:/Development/OS2TK45/h/os2def.h:100: error: parse error before "PCHAR16"
    > E:/Development/OS2TK45/h/os2def.h:100: warning: type defaults to `int' in
    > declaration of `PCHAR16'
    > E:/Development/OS2TK45/h/os2def.h:100: warning: data definition has no
    > type or storage class
    > E:/Development/OS2TK45/h/os2def.h:138: error: parse error before "PVOID16"
    > E:/Development/OS2TK45/h/os2def.h:138: warning: type defaults to `int' in
    > declaration of `PVOID16'
    > E:/Development/OS2TK45/h/os2def.h:138: warning: data definition has no
    > type or storage class
    > E:/Development/OS2TK45/h/os2def.h:144: error: parse error before "PBOOL16"
    > E:/Development/OS2TK45/h/os2def.h:144: warning: type defaults to `int' in
    > declaration of `PBOOL16'
    > E:/Development/OS2TK45/h/os2def.h:144: warning: data definition has no
    > type or storage class
    > In file included from rexxhlp.c:17:
    > E:/Development/OS2TK45/h/rexxsaa.h:534: error: syntax error before
    > "struct"
    > E:/Development/OS2TK45/h/rexxsaa.h:544: error: syntax error before
    > "struct"
    > E:/Development/OS2TK45/h/rexxsaa.h:546: error: parse error before
    > "RXFNC_FLAGS"
    > E:/Development/OS2TK45/h/rexxsaa.h:546: warning: no semicolon at end of
    > struct or union
    > ...
    >
    >
    > Looks like gcc doesn't like _Seg16 statement.
    > Any idea how this can be resolved?




+ Reply to Thread
Page 2 of 2 FirstFirst 1 2