Problem with .c from .pc [message #94422] |
Thu, 21 October 2004 07:28 |
Claudio
Messages: 3 Registered: October 2002
|
Junior Member |
|
|
Hello i'm new of this forum but in some way i need to start.(i'm writing from Rome and my english is poor...so i hope someone understand me....)
Now my little problem...i've a file .pc that make some stuff..but when i compile it i receive this error:
'break statement not within loop or switch'.
In effect i see in the rispective .c this line:
if (sqlca.sqlcode == 1403) break;
Why compiler put this line ?.
Best regards...
|
|
|
Re: Problem with .c from .pc [message #94435 is a reply to message #94422] |
Thu, 28 October 2004 21:50 |
alok
Messages: 12 Registered: December 2000
|
Junior Member |
|
|
The is a common mistake by everyone ...
the precompiler interpret the statement
EXEC SQL WHENEVER NOT FOUND DO break;
as if(sqlca.sqlcode==1403) break;
so check your code and make sure your placing it correctly.
|
|
|