VisualGDB using SQLite3

Sysprogs forums Forums VisualGDB VisualGDB using SQLite3

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #811
    cicsoft
    Participant

    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.

    Where am I screwing up?

    #3139
    support
    Keymaster

    Hi,

    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.

    #3140
    cicsoft
    Participant

    Dumb coding error. Instead of using “#typedef Sqlite3 *db”, I should have just used “sqlite3 *db”

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.