473,748 Members | 5,232 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vc++ error while compiling pro*c precompiled code

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\Variabl eRating.cpp(712 ) : error C2146: syntax error : missing
';' before identifier 'SQL'
E:\CODE\Variabl eRating.cpp(712 ) : error C2501: 'EXEC' : missing
storage-class or type specifiers
E:\CODE\Variabl eRating.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 19 '05 #1
1 2773

"geek04" <ge****@hotmail .com> wrote in message
news:c6******** *************** ***@posting.goo gle.com...
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\Variabl eRating.cpp(712 ) : error C2146: syntax error : missing
';' before identifier 'SQL'
E:\CODE\Variabl eRating.cpp(712 ) : error C2501: 'EXEC' : missing
storage-class or type specifiers
E:\CODE\Variabl eRating.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 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1558
by: geek04 | last post by:
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
8
2858
by: Edward Diener | last post by:
If I try to reference System::Windows::Forms::KeyEventArgs in a header file I get the error: MyHeader.h(236) : error C2039: 'Windows' : is not a member of 'System' Any ideas why this is happening ? Can I not reference a name using its full path in MC++ or is this just a bug in the compiler ?
2
6130
by: Bob Rock | last post by:
Hello, is there a way to export the makefile a given project (or solution) is using to build that project (or solution)???? Compiling and linking from command line I don't seem to be able to reproduce what Visual Studio .NET 2003 is doing when compiling my VC++ project. In VC++ 6 a menu command allowed it ... but in VS .NET I can't easily see any such command. Thanks.
2
2247
by: Darren Martz | last post by:
Compiler: msvc 7.1 AppType: console OS: WinXP Pro I now get this "Internal Compiler Error mscl.cpp line 2701" message when I build a specific project and cannot figure out why. It was compiling fine, then I changed a resource text value and it started complaining. I changed the code but it didn't matter, it now continually complains.
1
1525
by: Cynthia | last post by:
Hi, I have a C++ source file (mymessage.cpp), it is used by two different platforms. PC and VxWorks. The file has a header section to include header files depending on which platform it is compiled. The code is like this: #ifndef _VxWORKS #include "stdafx.h"
26
1958
by: _R | last post by:
Given that VS2005 has made an effort to clean up the syntax of VC++ (in C++/CLI), is there any future plans to do away with function protos, ala C#/VB? What are they needed for these days?
0
1512
by: rgettman | last post by:
Hello, I'm attempting to use Pro*C to create a nested table and send that data to a stored procedure as a parameter. However, I'm getting a Pro*C compiler error that I'll describe below. I'm using Oracle 10.2 on Unix. 1. First I created a nested table type in the database: CREATE TYPE varchar2_list AS TABLE OF VARCHAR2(15); 2. Then I created the input file for "ott", called "acttest.typ":
3
2667
by: =?Utf-8?B?RGF2ZS1I?= | last post by:
error PRJ0006 : Could not open the temporary file 'c:\Project\CompressMorphis\Release\RSP00000133601984.rsp'. Make sure the file exists and that the directory is not write-protected. 1>Compiling... 1>Project : error PRJ0003 : Error spawning '/Ox'. _______________________________________ I've checked the attributes, but when I do a "windows properties" it comes up showing the directory with a greyed out "checked" button for "read only"
11
41280
by: gumboots | last post by:
Hi there guys, I've recently purchased "Sam's Teach Yourself C++ Fifth Edition" (About a week before the 6th edition came out) I'm trying to work through the book, but in trying to compile Hello World, I keep getting an error instead of it making the program. I've looked around the internet for a reason, but come up stuck. My only assumption would be that the fifth edition is upgraded to suit newer compilers? (I downloaded Visual C++...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8244
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.