sqlite3 header wrapper #1163
-
I am learning to make a sqlite3 wrapper header for C3 but failed.I have no clue what the compiler complained about.Attached the wrapper file for reference.And also attached all testing file in zip format. Acutally the testing wrapper just contains several lines(sqlite3.c3i): module sqlite3; def FnSqlite3Callback = fn int(void* parm1, int* parm2, char** parm3, char** parm4); Below is the compiling message: E:\Learning\c3pack\sql\c3sqlite>c3c compile main.c3 --lib sqlite3 --libdir . -l sqlite3.lib 4: 6: 8: 10: 12: 14: Any help would be appreciated. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
C3 types must start with an uppercase character, so Sqlite3_stmt works (or just Stmt, recall there is proper namespacing) but sqlite3_stmt doesn't. |
Beta Was this translation helpful? Give feedback.
-
I have one more question: So my question is how to properly define global const in Module A and call from Module B if Module A is inside c3l package? Thanks again. Regards, |
Beta Was this translation helpful? Give feedback.
Your package works for me: