I am using VisualGDB connected to Raspberry PI to build locally and run remotely. I have installed SQLite3 on my RPI.
My project is using SQLite3.c and Sqlite3.h. My header file lists a public variable “typedef sqlite3 *db”. To open my database I use the statement
sqlite3_open(“/home/pi/edvotek.db”, &db);
The compiler returns “error: expected primary-expression before ‘)’ token.
It’s hard to tell from just this statement, but looking at the preprocessor output (expansion of #define statements) should most likely provide a clear answer. Run “gcc -E file.c -o file.e” and then examine file.e (search for main() there as the file will be huge due to expanded #include directives). If the output is not helpful, please post the line that causes the error here.