format argument is not a pointer
Although I no nothing about C++ I am trying to edit a program so that it adds a record to a sqlite database. I am getting a few warnings and errors which stops it compiling. So I need a little help fixing it
errors: PHP Code:
PHP Code:
|
logger.cpp:607: warning: format argument is not a pointer (arg 6)
This refers the the variable channel, which apparently is not a char* (pointer to char, the standard c-string). The answer might be to put &channel instead, but you'll have to post the declaration of channel otherwise I can't tell. logger.cpp:629: error: jump to case label logger.cpp:603: error: crosses initialization of `char*zErrMsg' I think the solution here is to enclose everything from case lable to the break in curly braces. That is, scrolling up from line 603 look for a line with Code:
case SOMETHING: Code:
strcpy(details.term, ""); |
Thanks I sorted that out only to be confronted by another problem. I think it has something to do with linker or LD but I am not sure. Any Ideas?
Code:
/usr/src/logger-1.2-beta3/src/logger.cpp:731: undefined reference to `sqlite3_open' |
All times are GMT -5. The time now is 11:58 AM. |