如何编译wxSqlite3 3.02扩展功能

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
whz
Earned a small fee
Earned a small fee
Posts: 11
Joined: Tue Oct 05, 2010 1:01 am

如何编译wxSqlite3 3.02扩展功能

Post by whz » Wed Feb 06, 2013 11:59 am

cd sqlite3/secure/src
gcc -fPIC -lm -shared sqlite3secure.c -DSQLITE_HAS_CODEC -pthread -ldl
能正确的编译出加密版的sqlite3
gcc -fPIC -lm -shared sqlite3secure.c -DSQLITE_HAS_CODEC -pthread -ldl -DSQLITE_ENABLE_EXTFUNC
但上面的命令不能编译出带扩展功能的Sqlite3
出现下面的提示
In file included from sqlite3secure.c:60:
extensionfunctions.c:211: error: redefinition of typedef ‘u8’
sqlite3.c:8125: error: previous declaration of ‘u8’ was here
extensionfunctions.c:213: error: redefinition of typedef ‘i64’
sqlite3.c:8120: error: previous declaration of ‘i64’ was here
extensionfunctions.c:402: error: static declaration of ‘acosh’ follows non-static declaration
extensionfunctions.c:410: error: static declaration of ‘asinh’ follows non-static declaration
extensionfunctions.c:418: error: static declaration of ‘atanh’ follows non-static declaration
extensionfunctions.c:725: error: expected ‘)’ before ‘c’
extensionfunctions.c:725: error: expected expression before ‘)’ token
正确的编译命令是什么?……

Post Reply