Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > vc++ error while compiling pro*c precompiled code

Reply
Thread Tools

vc++ error while compiling pro*c precompiled code

 
 
geek04
Guest
Posts: n/a
 
      02-28-2004
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
 
Reply With Quote
 
 
 
 
John Harrison
Guest
Posts: n/a
 
      02-28-2004

"geek04" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS does not find precompiled ASP.NET code Martin Plechsmid ASP .Net 3 04-27-2010 12:34 PM
Compiling ruby.h with precompiled headers Geo Tavros Ruby 0 09-11-2009 05:46 PM
error while compiling ruby 1.9 source code Chirag Mistry Ruby 0 07-11-2007 10:01 AM
IsDBNull ~ Precompiled code in .NET~Help Please Brad Isaacs ASP .Net 2 02-16-2007 06:29 PM
can asp.net pages source code be precompiled in asp.net 1.1? BLACKDOG157@LYCOS.COM ASP .Net 2 12-22-2005 09:01 PM



Advertisments