By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,506 Members | 1,881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,506 IT Pros & Developers. It's quick & easy.

vc++ error while compiling pro*c precompiled code

P: n/a
i'm using pro*c to precompile my c++ code which accesses oracle 9i
database, i'm running a oracle 9i client on my system

on compiling the c++ file (generated by pro*c)i'm getting following
errors:

E:\CODE\VariableRating.cpp(712) : error C2146: syntax error : missing
';' before identifier 'SQL'
E:\CODE\VariableRating.cpp(712) : error C2501: 'EXEC' : missing
storage-class or type specifiers
E:\CODE\VariableRating.cpp(712) : fatal error C1004: unexpected end of
file found

all these errors point on the first line containing the 'EXEC'
statement (any 'EXEC' statement 'INCLUDE' or 'BEGIN DECLARE SECTION')
in the file

plz help

thanx in advance

harsh
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"geek04" <ge****@hotmail.com> wrote in message
news:c6**************************@posting.google.c om...
i'm using pro*c to precompile my c++ code which accesses oracle 9i
database, i'm running a oracle 9i client on my system

on compiling the c++ file (generated by pro*c)i'm getting following
errors:

E:\CODE\VariableRating.cpp(712) : error C2146: syntax error : missing
';' before identifier 'SQL'
E:\CODE\VariableRating.cpp(712) : error C2501: 'EXEC' : missing
storage-class or type specifiers
E:\CODE\VariableRating.cpp(712) : fatal error C1004: unexpected end of
file found

all these errors point on the first line containing the 'EXEC'
statement (any 'EXEC' statement 'INCLUDE' or 'BEGIN DECLARE SECTION')
in the file

plz help


I'd love to help but without seeing a single line of code its very hard.

Since you have at least 712 lines of code I suggest you do some work
reducing the size of the code and then post the reduced code here, quote the
error messages and highlight which lines they apply to.

john
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.