gnupic@linuxhacker.org

gnupic@linuxhacker.org


Subject: Missing #include in gputils (gpreadhex.h)
From: Carlos Nieves Onega
Date: 28 Jan 2003 22:28:02 +0100

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 <cnieves@iespana.es>


---Publicidad--------------------------------------------------------
Juega con Ventura24.es, loterķa inteligente y multiplica tus
posibilidades!! http://www.iespana.es/_reloc/email.ventura



gnupic@linuxhacker.org