我正在尝试使用 MinGW dlltool 构建静态库,以便将其链接到 GCC 中。我所拥有的只是一个 DLL 文件。我创建了一个 *.def 文件,现在我正在尝试制作 *.a 文件。但是我不能强制 MinGW dlltool 创建 antyhing,它只会创建一个空文件。这是控制台输出:
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
有什么问题?如何创建静态库文件?