[cspay-dev] CSpay export, status

Eduard Tuþescu eduard_tutescu at yahoo.com
Thu Jul 31 12:47:05 EEST 2008


Salut,

Am incercat sa compilez sursele si imi da urmatoarele erori : 

edi at laptop:~/Desktop/cspay/trunk/src/export/cspay_bin$ make
cc -Wall `mysql_config --cflags` -ggdb -I../libspreadconv -I../common  -c -o main.o main.c
/bin/sh: mysql_config: not found
main.c:7:19: error: mysql.h: No such file or directory
main.c:9:18: error: popt.h: No such file or directory
main.c:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.c: In function ‘db_connect’:
main.c:74: error: ‘Conn’ undeclared (first use in this function)
main.c:74: error: (Each undeclared identifier is reported only once
main.c:74: error: for each function it appears in.)
main.c:74: warning: implicit declaration of function ‘mysql_init’
main.c:75: warning: implicit declaration of function ‘mysql_real_connect’
main.c:79: warning: assignment makes pointer from integer without a cast
main.c:81: warning: implicit declaration of function ‘mysql_error’
main.c:81: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
main.c:82: warning: implicit declaration of function ‘mysql_close’
main.c: In function ‘parse_cmd’:
main.c:100: error: array type has incomplete element type
main.c:101: error: ‘POPT_ARG_STRING’ undeclared (first use in this function)
main.c:109: error: ‘POPT_ARG_INT’ undeclared (first use in this function)
main.c:111: error: ‘POPT_AUTOHELP’ undeclared (first use in this function)
main.c:112: error: expected ‘}’ before ‘POPT_TABLEEND’
main.c:114: error: ‘poptContext’ undeclared (first use in this function)
main.c:114: error: expected ‘;’ before ‘opt_con’
main.c:118: error: ‘opt_con’ undeclared (first use in this function)
main.c:118: warning: implicit declaration of function ‘poptGetContext’
main.c:119: warning: implicit declaration of function ‘poptGetNextOpt’
main.c:122: warning: implicit declaration of function ‘poptStrerror’
main.c:122: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
main.c:123: warning: implicit declaration of function ‘poptPrintUsage’
main.c:131: warning: implicit declaration of function ‘poptFreeContext’
main.c:100: warning: unused variable ‘options_table’
make: *** [main.o] Error 1 

Trebuie sa mai instalez niste librarii ca sa poate folosi mysql.h ? 

Eduard


      


More information about the cspay-dev mailing list