刚刚下载了unqlite.c和unqlite.h,在 Eclipse 中创建了一个新项目,从unqlite.org网站复制了一个示例,我收到以下错误:
21:37:51 **** Build of configuration Debug for project nosql ****
make all
Building file: ../main.cpp
Invoking: Cross G++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.cpp"
In file included from ../main.cpp:49:0:
../unqlite.h:661:8: error: declaration of ‘pgno unqlite_page::pgno’ [-fpermissive]
pgno pgno; /* Page number for this page */
^
../unqlite.h:651:15: error: changes meaning of ‘pgno’ from ‘typedef sxu64 pgno’ [-fpermissive]
typedef sxu64 pgno;
^
subdir.mk:25: recipe for target 'main.o' failed
make: *** [main.o] Error 1
21:37:51 Build Finished (took 171ms)
它本来应该很简单,但我不知道发生了什么……有人试过这个 unqLite KV 商店吗?
我在用着
gcc 版本 4.9.2 (Debian 4.9.2-10)
干杯
ttkdroid