MinGW dlltool creates an empty file

I am trying to create a static library using MinGW dlltool so I can link in GCC. I only have a DLL file. I created a * .def file and now I am trying to create a * .a file. However, I cannot get MinGW dlltool to create the bind, it only makes an empty file. Here's the console output:

C:\MinGW\bin>dlltool -v -d nlib32.def -l nlib32.a
dlltool: Processing def file: nlib32.def
dlltool: LIBRARY: NCAPI32.dll base: ffffffff
dlltool: Processed def file
dlltool: Processing definitions
dlltool: Processed definitions
dlltool: Creating library file: nlib32.a
dlltool: run: as   -o dozwch.o dozwch.s
dlltool: No such file or directory
dlltool: CreateProcess

      

What's the problem? How do I create a static library file?

+3


source to share


1 answer


I had the same problem. By adding C: \ MinGW \ bin (or wherever your as.exe is) the PATH system solved it for me.



+3


source







All Articles