gnupic: Missing #include in gputils (gpreadhex.h)
Subject:
Re: Missing #include in gputils (gpreadhex.h)
From:
Craig Franklin ####@####.####
Date:
29 Jan 2003 19:25:41 -0000
Message-Id: <3E3829BF.628C7CE4@attbi.com>
It's not really an error. I intended users to #include "libgputils.h",
if they wanted to use the library. If you do this, checkout the latest
stuff in cvs.
A warning to those that choose to use the library: I frequently make
changes to the content and interface of the library to better serve
gputils. If you use the library, don't be surprised if things change in
the future.
Carlos Nieves Onega wrote:
>
> Hi,
> I just wanted to read hex files in other program, so I pick up
> gpreadhex*, gpmemory*, and stdhdr.h from gputils (directory libgputils)
> to do it.
> I got a compilation error in gpreadhex.h, complaining about "enum
> formats" use in struct hex_data (it was not defined). So I just added a
> #include "gpwritehex.h" in gpreadhex.h, and pick up gpwritehex*, as
> follows:
>
> --- ../../temp/gputils-0.10.6/libgputils/gpreadhex.h 2002-01-13
> 18:24:45.000000000 +0100
> +++ gpreadhex.h 2003-01-28 22:15:39.000000000 +0100
> @@ -21,6 +21,8 @@
> #ifndef __GPREADHEX_H__
> #define __GPREADHEX_H__
>
> +#include "gpwritehex.h"
> +
> struct hex_data {
> enum formats hex_format;
> int size;
> ---
>
> This solved the error. Maybe this will be useful to anyone...
>
> Regards,
>
> Carlos
>
> --
> Carlos Nieves Onega ####@####.####
>
> ---Publicidad--------------------------------------------------------
> Juega con Ventura24.es, loterĂa inteligente y multiplica tus
> posibilidades!! http://www.iespana.es/_reloc/email.ventura
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####