Weird gcc error stray/missing terminating " character in C

Posted by DreamCodeR on Stack Overflow See other posts from Stack Overflow or by DreamCodeR
Published on 2010-05-27T19:45:10Z Indexed on 2010/05/27 19:51 UTC
Read the original article Hit count: 282

Filed under:
|
|

I get the following errors:

error: missing terminating " character

and

error: stray `\' in program

In this line of C code:

 system("sqlite3 -html /home/user/.rtcom-eventlogger/el.db \"SELECT service_id, event_type_id,free_text, remote_uid FROM Events WHERE remote_uid=\'%d\' ORDER BY start_time DESC;\" > lol.html", nr);

"nr" is a integer variable.

I have gone over this so many times but are totally stuck of finding a solution.

EDIT: The errors is the ouput while compiling with gcc if I didn't make that clear.

© Stack Overflow or respective owner

Related posts about c

    Related posts about gcc