Re: Some pro*c options questions

From: Jeff Kish <jeff.kish_at_ait-mmii.com>
Date: Thu, 09 Aug 2001 12:27:11 -0400
Message-ID: <a7e5ntgkbc38o0eh14lcsvu3hnejpbnphc_at_4ax.com>


I think I know the answer to one of your questions.

On Sat, 21 Jul 2001 21:12:14 GMT, olavb_at_yahoo.com (Olav) wrote:

>**1**
>Is there some way to know from inside the code if an option
>is set. I.e. if you use the option (threads=yes). Is there
>something like
>EXEC ORACLE IFDEF THREADS;
>I can do?
>
>**2**
>I there some way to see the options pro*c is invoked with?
>(I am using Visual Studio/Visual C++ custom build,
>so I don't actually know this ).
>
>**3**

If you look in sqlca.h you'll see some information that may help. We define

    #define SQLCA_STORAGE_CLASS extern
And then in one file, in one place we define the actual variable struct sqlca sqlca. This means that is actually exists in exactly ONE place, and is external everywhere else.
>We have several .pc file that are used in different
>configurations in different projects. We have problems
>with ORACA structs becoming multiple or undefined when
>we link, so that we have to change the source.
>
>I was thinking of having a scheme where we use a command-line
>define on one of the file where we want it to be allocated, and
>have it declared external if it not set.
>
>Anybody do this? Some better setups? Perhaps having one
>oracle_globals.pc?
>
>Thanks!
>Olav
  Received on Thu Aug 09 2001 - 18:27:11 CEST

Original text of this message