Message-ID: <338EF81E.320F@wcug.wwu.edu> Date: Fri, 30 May 1997 08:54:06 -0700 From: "Cameron J. Mallory" Reply-To: mallory AT wcug DOT wwu DOT edu Organization: WCUG- sloth student server MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Problems with u_char Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Hello all, I have a question about declaring u_char things. The problem seems that gcc doesn't like me when I try that, Here is the requested info. that was asked for from the web page Additionally, I grabbed the minimum files needed for installation, and grabbed the Pentium Compiler optimized gcc stuff. Also, I do show that I have types.h in the c:\djgpp\include\sys directory. Thanks alot. Cameron Mallory AUTOEXEC.BAT contents C:\>more autoexec.bat set SOUND16=C:\TELECMDR\ C:\TELECMDR\SNDINIT.EXE /b set BLASTER=A220 I5 D1 T4 c:\windows\command\MSCDEX.EXE /D:OEMCD001 /V /M:8 set DJGPP=c:\djgpp\djgpp.env set PATH=c:\;c:\windows\command;c:\djgpp\bin;c:\tp\bin;;C:\PROGRA~1\ULTRAEDT SET LMOUSE=C:\MOUSE C:\MOUSE\MOUSE CONFIG.SYS contents C:\>more config.sys DEVICE=c:\windows\HIMEM.SYS FILES=60 DEVICE=c:\windows\CMD640X2.SYS /A:33 /l DEVICE=CMDATAPI.SYS /D:OEMCD001 C:\djgpp>go32-v2 go32/v2 version 2.0 built Aug 12 1996 22:27:23 Usage: go32 coff-image [args] Rename this to go32.exe only if you need a go32 that can run v2 binaries as well as v1 binaries (old makefiles). Put ahead of the old go32 in your PATH but do not delete your old go32 - leave it in the PATH after this one. Set GO32_V2_DEBUG=y in the environment to get verbose output. DPMI memory available: 19231 Kb DPMI swap space available: 18729 Kb ENVIRON.LST contents C:\djgpp>more environ.lst TMP=C:\WINDOWS\TEMP TEMP=C:\WINDOWS\TEMP PROMPT=$p$g winbootdir=C:\WINDOWS COMSPEC=C:\WINDOWS\COMMAND.COM SOUND16=C:\TELECMDR\ BLASTER=A220 I5 D1 T4 DJGPP=c:\djgpp\djgpp.env PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\WINDOWS\COMMAND;C:\DJGPP\BIN;C:\TP\BIN ;;C:\PROGRA~1\ULTRAEDT LMOUSE=C:\MOUSE windir=C:\WINDOWS CMDLINE=more types.h Problem****************** Declaration in code: #include #include #include 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) saddleba.c:32: (Each undeclared identifier is reported only once saddleba.c:32: for each function it appears in.) saddleba.c:32: parse error before `buf' saddleba.c:34: `buf' undeclared (first use this function)