Tim Bunce wrote: > > On Thu, Sep 25, 2003 at 12:39:05PM +0200, Steffen Goeldner wrote: > > 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). > > Er, so how did you find the symbols in orasql8.dll then?
The orasql8.dll is in $ORACLE_HOME/bin. You can see all exported
symbols with e.g. 'Quick View' or Borland's IMPDEF:
LIBRARY ORASQL8.DLL
EXPORTS
DSNTIAR @1 ; DSNTIAR
...
SQLEnvGet @15 ; SQLEnvGet
...
> >
[...]
> > 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
>
> Does that work for you?
Yes, DBD-Oracle-1.15/Oracle.def now contains:
LIBRARY "Oracle"
EXPORTS
_boot_DBD__Oracle
boot_DBD__Oracle = _boot_DBD__Oracle
IMPORTS
_SQLEnvGet=orasql8.SQLEnvGet
_SQLSvcCtxGet=orasql8.SQLSvcCtxGet
> And for other compilers?
There may be an '_' issue with other compilers/linkers.
> Wouldn't orasql8.dll still need to be installed and listed on the
> linker command line?
The orasql8.dll is installed - at least on my 'small' (82.9MB)
Oracle 8.1.7 client installation.
The linker needs either a .lib or .def file.
> > (There is an empty! 'Oracle 817 Production.rgs' in my
> > $OH/ORAINST directory. I don't know how portable that is.)
>
> There might be a version number in the registry.
That's not really better, see attachment.
> But since *very* few people would need the ability to
> share database connections with ProC/SQLLIB code my preference
> right now is to just disable it entirely on Windows and
> only enable it on other platforms for Oracle >= 9.0.
That's o.k. for me.
Steffen
Oracle.reg
Description: application/unknown-content-type-regfile
