Porting a Win9x video driver to OpenWatcom V2 #1011
Replies: 5 comments 13 replies
-
I think main mistake is that you link it as executable but it should be linked as DLL. How you compile and link it by Open Watcom? |
Beta Was this translation helpful? Give feedback.
-
Anyway simplest solution is to compile and link it with MS tools. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your help! It helped me a lot to make some progress!
I am still facing the issue when linking Linker output:
The map file is below: I am bit surprised that even the library built using MSVC 152 does not have a |
Beta Was this translation helpful? Give feedback.
-
I am sorry, I don't do any Windows 16/32-bit driver design that my note will be only general. |
Beta Was this translation helpful? Give feedback.
-
I found out that this part of the display driver handles the DLL initialization, and also does some magic to with an |
Beta Was this translation helpful? Give feedback.
-
Hello everyone!
I am currently working on modifying a Win9x video driver to be buildable with OpenWatcom V2. I want to be able to build it under Windows 10.
The video driver comes with a 16bit mini driver component. Microsoft intended this part to be compiled with MSVC 152. You can find a sample of the (nmake) makefile include for the 16bit mini driver here: https://github.com/KunYi/W2K_DDK_SAMPLES/blob/ee9eb5e572d1abdddc99cb9215fd21557f206dae/win_me/display/mini/mini16.mk
This link is a sample display driver provided by MS, and my video driver is basically using a modified example. The 16 bit code will get compiled to a
*.drv
library.I have modified my
mini16.mk
to use the OpenWatcom2wcc
compiler, and use the OpenWatcom2 include directory and library directory, but I am still facing problems.I have the following questions:
ldllcew.lib
, which contains the C standard library in large memory model, to be used when building as a library. I believe the equivalent library from OW2 shouldclibl.lib
, so I changed:to
However it seems
clibl.lib
doesn't work when building libraries, as I receive a linker error:C:\TOOL\OpenWatcom20\lib286\dos\clibl.lib(cmain086.c) : error L2029: 'main_' : unresolved external
May I ask which
clib
I should use if I want to build my code as a library?The full linker log is attached.
I am very new to driver development and OpenWatcom 2. Thanks for your help, and for keeing the development of OW active!
linker_log.txt
Beta Was this translation helpful? Give feedback.
All reactions