Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Pro*C++: Global variables problem

Pro*C++: Global variables problem

From: Atul Pinge <apinge_at_carl.org>
Date: 18 Oct 2001 09:55:01 -0700
Message-ID: <5939461c.0110180855.7ed74635@posting.google.com>


Hello everybody,

I started working with Pro*C++ preprocessor and it's turning out to be quite a nightmare. Looks like the preprocessor generates global variables in the file where we are using EXEC SQL statements. So does that mean that you are allowed to use all the EXEC SQL statements only in one source file? Because otherwise, I get "This global variable already defined" kind of errors. Also, looks like the preprocessor can look at variables defined between EXEC SQL BEGIN DECLARE SECTION and EXEC SQL END DECLARE SECTION. So does that mean that I cannot define any variable inside .h file where class is declared? Because if it is going to generate global variables in .h file then every place the .h file is included the global variables are going to get defined again. Is there a solution to this problem?

Thanks in advance.
Atul Received on Thu Oct 18 2001 - 11:55:01 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US