gnupic: Missing #include in gputils (gpreadhex.h)


Previous by date: 28 Jan 2003 21:39:47 -0000 SDCC & Bootloaders, Jeff Jackowski
Next by date: 28 Jan 2003 21:39:47 -0000 Re: Missing #include in gputils (gpreadhex.h), Craig Franklin
Previous in thread:
Next in thread: 28 Jan 2003 21:39:47 -0000 Re: Missing #include in gputils (gpreadhex.h), Craig Franklin

Subject: Missing #include in gputils (gpreadhex.h)
From: Carlos Nieves Onega ####@####.####
Date: 28 Jan 2003 21:39:47 -0000
Message-Id: <1043789281.724.40.camel@otilio>

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



Previous by date: 28 Jan 2003 21:39:47 -0000 SDCC & Bootloaders, Jeff Jackowski
Next by date: 28 Jan 2003 21:39:47 -0000 Re: Missing #include in gputils (gpreadhex.h), Craig Franklin
Previous in thread:
Next in thread: 28 Jan 2003 21:39:47 -0000 Re: Missing #include in gputils (gpreadhex.h), Craig Franklin


Powered by ezmlm-browse 0.20.