Steffen Goeldner wrote:
> 
> [...]
>
> I try to find those symbols and the library ...

Thanks to Andy Hassall, I found the symbols in orasql8.dll.
I did not install Pro*C and have a $ORACLE_HOME/precomp
but no $ORACLE_HOME/precomp/lib (and no orasql8.lib).
Even if, Borland C++ is no longer supported:

  <http://my.kharkov.org/docs/oracle/nt.816/a73023/ch1.htm#1660>

I see 2 options:

1) Make an orasql8.lib:

     implib -a ORASQL8 /Oracle/Ora81/bin/ORASQL8.DLL

   and add it to $opts{LIBS} in Makefile.PL.

2) Import via .def file, e.g.:

    $opts{IMPORTS} = {
      _SQLEnvGet    => 'orasql8.SQLEnvGet',
      _SQLSvcCtxGet => 'orasql8.SQLSvcCtxGet'
    } if $os eq 'MSWin32' && $Config{cc} eq 'bcc32';    # Borland CC

The remaining question is: how to find out the correct
version number? Maybe something like that:

  if ( $os eq 'MSWin32' ) {
    for ( glob "$OH/ORAINST/*.rgs") {
      my $rgs = substr $_, length "$OH/ORAINST/";
      $rgs =~ /(\d)(\d)(\d)/;
      $inspdver{RDBMS} = join '.', $1, $2, $3;
    }
  }

(There is an empty! 'Oracle 817 Production.rgs' in my
$OH/ORAINST directory. I don't know how portable that is.)


Steffen

Reply via email to