Can WCL386 create Windows' DLLs #1505
Replies: 3 comments 6 replies
-
It looks like some misconfiguration of OW. It looks like you use 32-bit version of OW. |
Beta Was this translation helpful? Give feedback.
-
Anyway you should use folowing options for wcl386 to properly create NT DLL. I tested with your source sample and no problem, no errors or warnings |
Beta Was this translation helpful? Give feedback.
-
Thank you! That has solved it. I checked the environment variables, and they were all correct. It is the command options and link file that were not correct. I think that I now understand it:
So my error was to specify a LNK file containing a system directive. There is an implicit system directive provided by WCL386, so a system directive in the LNK file is a duplicate and causes the error. Well, I am glad that we got that sorted! Thanks again for your help. -- from CyberSimian in the UK |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a 32-bit Windows DLL to run on 64-bit Windows 10. I thought that I could use WCL386, but I cannot get it to work. So I have created a simple test program to illustrate the problem. Here is the C file "mydll.c":
Here is the LNK file "mydll.lnk":
Here is the command that I used:
wcl386 /bd /bcl=nt mydll.c @mydll.lnk
Here is the response from WCL386 (waffle omitted):
I have tried various combinations of command-line options and link-file directives, but none of them work. The E3057 error is the problem. However, using WCC386 plus WLINK I can successfully create the DLL:
So this problem is not a "show stopper" for me. But I am curious why WCL386 does not work. I should mention that OW 1.9 fails in the same way, so the most likely explanation is that I am not using the correct combination of options and directives. If anyone can create the DLL using WCL386, please describe what options and directives you used. Thank you!
-- from CyberSimian in the UK
Beta Was this translation helpful? Give feedback.
All reactions