Database Security. Database Auditing. Database Caching. Database Masking. Get it nowHELPHELP!! I got a error about event.h!!!!
When I compile the package,I got some error ....
ain.cpp:23:19: event.h: No such file or directory
In file included from greensql.hpp:11,
from main.cpp:26:
connection.hpp:19:19: event.h: No such file or directory
In file included from greensql.hpp:11,
from main.cpp:26:
connection.hpp:32: error: field `proxy_event' has incomplete type
connection.hpp:33: error: field `client_event' has incomplete type
In file included from main.cpp:26:
greensql.hpp:18:19: event.h: No such file or directory
In file included from main.cpp:26:
greensql.hpp:64: error: field `serverEvent' has incomplete type
main.cpp: In function `int main(int, char**)':
main.cpp:145: error: `event_init' undeclared (first use this function)
main.cpp:145: error: (Each undeclared identifier is reported only once for each
function it appears in.)
main.cpp:147: error: aggregate `event tEvent' has incomplete type and cannot be
defined
main.cpp:148: error: invalid application of `sizeof' to an incomplete type
main.cpp:152: error: `evtimer_set' undeclared (first use this function)
main.cpp:153: error: `evtimer_add' undeclared (first use this function)
main.cpp:159: error: `event_loop' undeclared (first use this function)
main.cpp: In function `void clb_timeout(int, short int, void*)':
main.cpp:220: error: `event_del' undeclared (first use this function)
main.cpp:228: error: `evtimer_set' undeclared (first use this function)
main.cpp:229: error: `evtimer_add' undeclared (first use this function)
where I can get that file ?
email:xxyyboy AT 163.com
G
Comments
Hi I think you are missing
Hi
I think you are missing development version of libevent library.
Can you tell me the name of the Linux distribution you are using ?
If you do not know the name of the distribution, in most of the systems you can get it using the following command:
shell> cat /etc/issueBest regards,
Yuli
Hi , thanks for your reply
Hi , thanks for your reply :-)
I installed libevent-1.4.8-stable.tar.gz, but I got anther error, It sames that the greensql cann't work very well on MySQL4.0 version.
after installed the libenvet:
root@darkstar:/usr/local/greensql-fw/src# cat /etc/issue
Welcome to \s \r (\l)
the error message like below,althought I modified others error:
config.cpp:242: `MYSQL_OPT_RECONNECT' undeclared (first use this function)
thanks again :-)
Hi It looks like you are
Hi
It looks like you are missing development library for mysql. This package can be named one of the followed:
libmysqlclient14-dev
libmysqlclient15-dev
mysql-devel
It depends in the Linux distribution you use.
I recommend you to install missing software using packages and not using source code.
Thanks yuli :-) I
Thanks yuli :-)
I compiled the green sql in my SUSE platform, everything is ok.