[opendbx] Error in odbx.h
Brought to you by:
nose
From: Mariano M. P. <mar...@gm...> - 2008-01-05 20:47:20
|
Hi! Once i could compile and install openDBX with the postgresql backend, i tried to do a very simple C application that connects to a Postgresql database. I see the example of the benchmark here<http://www.linuxnetworks.de/doc/index.php/OpenDBX/Comparison>and i use it as a base. Mi example is called Prueba.c i this: #include <stdio.h> #include <stdlib.h> #include <odbx.h> int main(void) { puts("Hello World!!"); return EXIT_SUCCESS; } When i tried to compile mi Prueba.c (even if i do nothing with openDBX) it has an error in the odbx.h. Here i paste the result: **** Build of configuration Linux GCC for project Prueba **** make all cc -c -o Prueba.o Prueba.c In file included from Prueba.c:11: /usr/local/include/odbx.h:206: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'odbx_rows_affected' make: *** [Prueba.o] Error 1 I saw the header odbx.h at line 206 and it is like this: uint64_t odbx_rows_affected( odbx_result_t* result ); Ok. That's the problem. Very thanks in advance. Mariano |