delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/09/11:19:20

Sender: nate AT cartsys DOT com
Message-ID: <35CDB822.50C3D4FE@cartsys.com>
Date: Sun, 09 Aug 1998 07:54:26 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Tarad <tarad AT 3awebcon DOT com>
CC: djgpp AT delorie DOT com
Subject: Re: Using a memory buffer in VGA mode 13h
References: <01bdc2bb$36b2c3c0$2856f482 AT s-64584>

Tarad wrote:
> 
> Hya, I just started learning graphic and I just run into a problem. Using
> the guide to VGA mode 13h at:
> http://www.delorie.com/djgpp/doc/ug/graphics/vga.html
> using a memory buffer to store a picture before I draw it on te screen I
> got some errors. The code snippet is on the above address, didn't won't to
> paste it here. Compiling using DJGPP like this:
> C:\>djgpp\gcc -c -Wall graphic.c -lm
> I got the following error:
> c:/djgpp/include/sys/movedata.h:22 parse error before `size_t'
> (actually there was 12 of these on different lines but anyway).
>
> What did I do wrong?

Nothing.  That's a bug in the <sys/movedata.h> header.  To work around,
add

#include <sys/types.h>

at the top.

It's fixed in v2.02.
-- 

Nate Eldredge
nate AT cartsys DOT com


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019