And my problems show up (it looks like) when i include the curl.h
in my module.
My main file is: htlive.c
and some part of the code is:
Code: Select all
....
#include <string.h>
#undef global
#include "src/mod/module.h"
#include "src/users.h"
#include "src/chan.h"
#include "channels.mod/channels.h"
#include "htlive.h"
static Function *global = NULL, *channels_funcs = NULL,*server_funcs = NULL;
static char htlive_login[32]; // (Read htlive.conf)
static char htlive_passwd[32]; // (Read htlive.conf)
#include "curl.c"
....
Code: Select all
#include <curl/curl.h>
#include <curl/easy.h>
Well, the problems is when i type "make"
Code: Select all
gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE_CONFIG_H `xml2-config --cflags` `curl-config --cflags` -DMAKING_MODS \
-c .././htlive.mod/htlive.c -Ixml
En el fichero incluído de ../htlive.mod/curl.c:5,
de ../htlive.mod/htlive.c:71:
/usr/include/curl/curl.h:772: error de decodificación antes de "global"
The translation is something like this:
error de decodificación antes de "global" --> parsing error before "global"
I was thinking a lot, but any solution found.
Perhaps, the problems is that i dont know really why this
"#undef global" is there...
...any idea?
Thanks.