Compilig very simple DLL project sometimes I obtain message like this:
**** (my log file - begin)****
cd x:\work\win\dll\run
wmake -f x:\work\win\dll\run\dll_run.mk -h -e
x:\work\win\dll\run\dll_lib.dll
wpp386
dll_fun.cpp -i=y:\OpnWC\h;y:\OpnWC\h\nt -w4 -e25 -zq -od -d2 -bd -5r -bt=nt
-mf
wpp386
dll_main.cpp -i=y:\OpnWC\h;y:\OpnWC\h\nt -w4 -e25 -zq -od -d2 -bd -5r -bt=nt
-mf
wlink name dll_lib d all op inc SYS nt_dll op m op maxe=25 op q op symf
@dll_lib.lk1
*** Watch this !!!!!!!!!
The instruction at 0x69c29844 referenced memory at 0x5f007478.The memory
could not be read.Error(E14): Cannot execute (wlink): Error 0
!!!!!!!!
Error(E42): Last command making (x:\work\win\dll\run\dll_lib.dll) returned a
bad status
Error(E02): Make execution terminated
Execution complete
**** (my log file - end)****
Sometimes - it means that changing project to another and then getting back
to the same
there is no problem with linking. Moreover the same project compiled and
linked with
Watcom 10.6 (patched to 11.0c) works properly.
Well what version of WLINK are you using?
11.0c should be fine.
Stephen Howe [TeamSybase]
I'm using both version as I have two compilers installed in two separate
directories. Yes I found that WLINK (W11.0c) works fine. But ones - when I
was linking a FORTRAN project taken and compiled by OW1.0 - it happened to
me that WLINK (W11.0c) produced similar error message. I've found also, that
(in OW1.0) it is sufficent to repeat making a project just right after the
error occures then linking goes fine. At that moment only linking is
repeated and it works well.
Janusz
P.S.
By the way. I found that in OW1.0 GRAPH libraries for DOS both 16 and 32 bit
don't work properly in FORTRAN application. Calling _outgtext terminates
application without warrning while caling _outtext and _grtext does not.
(I haven't checked yet if they work well with DOS 16/32 - C/C++ apps.)
The solution I've found was applying W11.0c GRAPH libraries. And then, on
the other hand, in FORTRAN application I couldn't call any function but I
could call subroutines. Calling a function in graph mode terminates suddenly
application.