Hello to everybody,
i am developing some C code to be used on OpenWRT.
Until now, it is just accessing UART so a simple cross compile from my Ubuntu machine is working.
I have exported all the necessary paths and i just run:
mips-openwrt-linux-gcc -o hello-world hello-world.c
I would like now to access a mysql database so i am just trying how to deal with mysql C API.
I have this simple C code:
#include <my_global.h>
#include <mysql.h>
int main(int argc, char **argv)
{
printf("MySQL client version: %s\n", mysql_get_client_info());
exit(0);
}
Which of course compiled on my x86 machine is perfectly working but as soon as i cross compile it, i get:
root@linux01:~/mysql-example# mips-openwrt-linux-gcc -o mysql-test mysql-test.c
mysql-test.c:1:23: fatal error: my_global.h: No such file or directory
#include <my_global.h>
^
compilation terminated.
That is quite clear...i need to tell to gcc where to get mysql headers file....but i do not know how to get them for openwrt.....
can somebody help me ?
Thanks
Ettore