gnupic: Missing #include in gputils (gpreadhex.h)
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