From: "POULAIN Vincent" Newsgroups: comp.os.msdos.djgpp Subject: Re: Problems with u_char Date: 31 May 1997 14:42:31 GMT Organization: Grolier Interactive Europe Lines: 38 Message-ID: <01bc6dce$5286fc80$LocalHost@vpoulain> References: <338EF81E DOT 320F AT wcug DOT wwu DOT edu> NNTP-Posting-Host: ppp-101-109.villette.club-internet.fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Cameron J. Mallory 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 ----------------------------------------