MinGW dlltool创建空文件 [英] MinGW dlltool creates empty file

查看:174
本文介绍了MinGW dlltool创建空文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用MinGW dlltool构建静态库,以便也将其链接到GCC.我只有一个DLL文件.我创建了一个* .def文件,现在我正在尝试制作* .a文件.但是我不能强迫MinGW dlltool创建Antyhing,它只会生成一个空文件.这是控制台输出:

I'm trying to build static library using MinGW dlltool in order too link it in GCC. What I have is only a DLL file. I created a *.def file and now I'm trying to make *.a file. However I can't force MinGW dlltool to create antyhing, 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 can I create the static library file?

推荐答案

我遇到了完全相同的问题.将C:\ MinGW \ bin(或您的as.exe所在的位置)添加到系统PATH为我解决了此问题.

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

这篇关于MinGW dlltool创建空文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆