masm 装配未解决的外部问题
我的班级正在学习“英特尔计算机的汇编编程”书(第五版),我正在尝试汇编程序。这本书附带了 Irvine32.inc,它应该使 IO 和其他东西变得更容易。我将它们与我尝试编译的 .asm 文件放在同一目录中。每当我执行 ml /Fe test.exe test.asm /link 时,我总是会收到有关该库中每个函数的错误,其中包含“未解析的外部”,例如:
test.obj(test.asm): error Lsomething : '_READINT@0 ' : 未解析的外部
我知道该程序可以工作,因为它正在我朋友的计算机上工作(我也在 64 位 Linux 上通过osemu 运行它)。当然,我有:
INCLUDE Irvine32.inc
在我的来源中。不管怎样,程序会编译,但它会立即杀死dosemu并且不告诉我原因。有谁知道我可能做错了什么?
My class is working out of the "Assembly programming for Intel computers" book (5th edition) and I'm trying to get the programs to assemble. The book comes with Irvine32.inc which is supposed to make IO and stuff easier. I have those in the same directory as the .asm file I'm trying to compile. Whenever I do ml /Fe test.exe test.asm /link I always get errors about every function from that library I am included saying "unresolved external" like:
test.obj(test.asm): error Lsomething : '_READINT@0' : unresolved external
I know the program works because it is working on my friend's computer (I'm on 64bit linux running this through dosemu also). And of course I have:
INCLUDE Irvine32.inc
in my source. Anyway the program will compile but it will instantly kill dosemu and not show me why. Does anyone know what I could be doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您没有指定要/链接的库(即检查您的命令行)。
Looks like you did not specify the library to /link with (i.e. check your command line).