slang-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] Error compiling slang2 on OS/2


 Hello:

Is there somebody, who is able to compile slang2 on OS/2?

I tried snapshot 4 and 5. Both failed with this error message.

gcc -Zmtd -DEMX_VIDEO -c -DOS2 -D__os2__ -o emxobjs/slvideo.o  ./slvideo.c
./slvideo.c: In function `write_attributes':
./slvideo.c:1068: aggregate value used where an integer was expected
./slvideo.c: In function `SLtt_init_video':
./slvideo.c:1167: warning: passing arg 3 of `SLtt_set_color' discards `const' fr
om pointer target type
./slvideo.c:1167: warning: passing arg 4 of `SLtt_set_color' discards `const' fr
om pointer target type
make.exe: *** [emxobjs/slvideo.o] Error 1

I can compile 1.4.9 without any problems. I get the same warnings for
SLtt_set_color, but no error in write_attributes.

I assume that the changes in SLsmg_Char_Type are the source of the error

New:

typedef struct
{
   unsigned int nchars;
   SLwchar_Type wchars[SLSMG_MAX_CHARS_PER_CELL];
   SLsmg_Color_Type color;
}
SLsmg_Char_Type;

old:

typedef unsigned short SLsmg_Char_Type;

And I found this comment in slvideo.c

/* This definition will need changing when SLsmg_Char_Type changes. */
#define SLSMG_CHAR_TO_USHORT(x) ((unsigned short)(x))

Any hints, how to fix this?


  Greetings from Vienna

       Hannes

--
Johannes Hromadka     | Email: Johannes.Hromadka@xxxxxxx
Vienna/Austria/Europe | OECC: http://www.oecc.org/

>>> Du musst die Details kennen (Geni Weber) <<<

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]