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

Home -> Community -> Usenet -> c.d.o.server -> Re: Pro*C help

Re: Pro*C help

From: Johan Wegener <xjw_at_xdde.xdk>
Date: Fri, 20 Aug 1999 13:11:28 +0200
Message-ID: <7pjd1h$p4f$1@news101.telia.com>


\ \ <ambrosetati_at_ukgateway.net> skrev i en nyhedsmeddelelse:7pja72$pg0$1_at_lure.pipex.net...
> Hi all,
> I'm trying to build a small VC++ which contains Pro*C modules.
> In all my Pro*C modules I've declared the following:
> #define SQLCA_STORAGE_CLASS extern
>
> 1) Compilation error:
> sqlcex : undeclared identifier
>
> 2) Link error:
> unresolved external symbol "struct sqlca sqlca"
>
> I know I need to define sqlca somewhere preferable in my main module. How
do
> I define it?

  1. The sqlcex appears to be a symbol from the SQL library and it is not (on my machine at least) declared in any header file, so you should not see this as a compilation error. What version of Oracle and Pro*C are you using? What header files are you including?
  2. In at least one of your modules you must define SQLCA_STORAGE_CLASS without the extern, eg. "#define SQLCA_STORAGE_CLASS" or simply leave out this macro while including sqlca.h. This defines the storage for the struct sqlca.

Cheers,
Johan Received on Fri Aug 20 1999 - 06:11:28 CDT

Original text of this message

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