On Fri, Feb 12, 2010 at 3:47 PM, Mike van Lammeren <[email protected]>wrote:

> Hello!
>
> I am running Ubuntu Hardy, and although I can compile the MySQL and SQLite
> modules of LuaSQL, I cannot get the ODBC module to compile. I've pasted the
> first few errors at the bottom of this email.
>
> Any ideas?
>
> Mike van Lammeren
>
>
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic
> -fPIC -I../compat/src
> -I/home/user/mysqlcluster-70-small/install/mysql-7.0.8a-linux-x86_64/include/mysql
> -I/usr/include/lua5.1/    -c -o src/ls_odbc.o src/ls_odbc.c
> src/ls_odbc.c:43: error: expected specifier-qualifier-list before âSQLHENVâ
> src/ls_odbc.c:51: error: expected specifier-qualifier-list before âSQLHDBCâ
> src/ls_odbc.c:60: error: expected specifier-qualifier-list before
> âSQLHSTMTâ
> src/ls_odbc.c:121: warning: type defaults to âintâ in declaration of
> âSQLSMALLINTâ
> src/ls_odbc.c:121: error: expected â;â, â,â or â)â before âtypeâ
> src/ls_odbc.c:147: warning: type defaults to âintâ in declaration of
> âSQLSMALLINTâ
> src/ls_odbc.c:147: error: expected â;â, â,â or â)â before âtypeâ
> src/ls_odbc.c:178: warning: type defaults to âintâ in declaration of
> âSQLHSTMTâ
> src/ls_odbc.c:178: error: expected â;â, â,â or â)â before âhstmtâ
> src/ls_odbc.c: In function âcur_fetchâ:
>
>
You need to include the ODBC headers, not the MySQL ones, I would think.

Robby
_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to