View Full Version : help w/Oracle class library for C++ on Linux
stefanie tomko
10-27-2003, 09:22 AM
Hi -
I'm trying to recompile some code (which I did not write) & am running
into this error -- due to my low familiarity with both C++ & Oracle stuff,
I'm not exactly sure where the problem is.
Anyway, the project has this oracleapp.h file, with this snippet in it:
class COracleApp : public CDBApp
{
private:
COraSession session;
COraDataset dataset;
but when I compile, I get:
In file included from ../../general/src/oracleapp.cpp:1:
.../../general/src/oracleapp.h:24: 'COraSession' is used as a type, but is
not defined as a type.
.../../general/src/oracleapp.h:25: 'COraDataset' is used as a type, but is
not defined as a type.
Now, I just realized that this typedef is found in the following #ifdef in
ora.h, one of the OCL headers:
#ifdef OCL_DEPRECATED
typedef OraConnection COraSession;
typedef OraQuery COraDataset;
but.... I'm not sure where I should be #define-ing OCL_DEPRECATED, or even
if I should be doing this.
Any suggestions, tips, insight would be REALLY appreciated; this is
driving me crazy!
thanks--
--stefanie
--
i'll write you a postcard,
a postcard's better --
you can see where i sent it from.
-- the minders, "hooray for tuesday"
Harald Maier
10-27-2003, 10:45 AM
stefanie tomko <stef+@cs.cmu.edu> writes:
Now, I just realized that this typedef is found in the following #ifdef in ora.h, one of the OCL headers: #ifdef OCL_DEPRECATED typedef OraConnection COraSession; typedef OraQuery COraDataset; but.... I'm not sure where I should be #define-ing OCL_DEPRECATED, or even if I should be doing this. Any suggestions, tips, insight would be REALLY appreciated; this is driving me crazy!
You can define it with the gcc command line option -DOCL_DEPRECATED or
put it into your source before the OCL headers are included. E.g.
#define OCL_DEPRECATED
Harad
stefanie tomko
10-27-2003, 11:17 AM
Hmmm, I tried both the gcc option & inserting it directly into the header
-- but I get a message that it's being redefined. So
#define OCL_DEPRECATED
actually *is* already included in another one of the library files,
crdef.h. And so I'm still getting the
'COraSession' is used as a type, but is not defined as a type.
error. Aaaargh!
thanks for your response, though!
-s
On Mon, 27 Oct 2003, Harald Maier wrote:
stefanie tomko <stef+@cs.cmu.edu> writes: Now, I just realized that this typedef is found in the following #ifdef in ora.h, one of the OCL headers: #ifdef OCL_DEPRECATED typedef OraConnection COraSession; typedef OraQuery COraDataset; but.... I'm not sure where I should be #define-ing OCL_DEPRECATED, or even if I should be doing this. Any suggestions, tips, insight would be REALLY appreciated; this is driving me crazy! You can define it with the gcc command line option -DOCL_DEPRECATED or put it into your source before the OCL headers are included. E.g. #define OCL_DEPRECATED Harad
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.