- I have a COBOL module which I can pre-compile successfully with
Pro*COBOL
- I can then compile that using NetExpress
- I can link an .EXE that includes this module and the procobol .lib
(orasql9.lib)
- The .EXE runs *but* I get the error:
Load Error : file 'ORASQL8'
Called program file not found
The link appears to be working correctly, but the entries don't seem
to be there - it's almost like the library and pre-compiler are not
consistent ...
On a related note - does anybody know how to use Oracle connectivity
in a debug (non-statically linked) environment, ie with the Animator.
The old tricks of rebuilding the cobol runtime system to statically
link in the procobol library no longer seem to apply.
Thanks
Matthew James
This is actually a bug in the Oracle precompiler. It embeds a call to
ORASQLx , in order to make the entry points subsequently called available to
the program.
With Oracle 9, it should embed a call to ORASQL9. The workaround is --
within the Oracle bin directory -- to copy ORASQL9.DLL to ORASQL8.DLL. Your
application should then execute correctly.
You should be able to debug your app in int/gnt code also, without the need
to relink the run-time (on Win32 at least), as Pro*COBOL embeds the above
call into the user app. You should only need to relink the COBOL run-time on
UNIX platforms.
Simon.
That little trick fixed both my statically and dynamically linked problems :-)
Matthew James
"Simon Tobias" <Simon....@nospam.microfocus.com> wrote in message news:<bcmmrh$66j$1...@hyperion.microfocus.com>...