Mail Archives: djgpp/1997/06/07/22:33:08
Cameron J. Mallory <mallory AT wcug DOT wwu DOT edu> a écrit dans l'article
> Hello all, I have a question about declaring u_char things.
Just declare unsigned char instead of u_char.
You can also put a #define u_char unsigned char if you've got a lot of
those declarations.
That will work !
> u_char buf[4];
>
>
> Get compile error:
> C:\cs460\PROG>gcc -o saddleba saddleba.c
> saddleba.c: In function `getdiskparm':
> saddleba.c:32: `u_char' undeclared (first use this function)
Because u_char is not a basic type (excuse my english) in C/C++.
> saddleba.c:32: parse error before `buf'
Because u_char wasn't recognized, gcc assume there's a parse error before
'buf'.
> saddleba.c:34: `buf' undeclared (first use this function)
So, when you try to use buf, there's a little problem...
--
---------------------------------------
Vincent Poulain.
vpoulain AT club-internet DOT fr
----------------------------------------
- Raw text -