MASM6.11 链接错误 fatal error L1101: invalid object module
2013年10月27日13:23:01
今天遇到这个问题,折腾了我好长时间,这里记录下,以免以后再犯此低级错误。
事情是这样的,我以前一直编译没有问题的汇编文件 ab.asm ,今天用 MASM6.11 编译 显示警告,链接显示错误,如下:
C:\Users\Administrator\Desktop>D:\MASM611\BIN\masm pci-a.asm,pci-a.obj;Microsoft (R) MASM Compatibility DriverCopyright (C) Microsoft Corp 1993. All rights reserved.
Invoking: ML.EXE /I. /Zm /c /Ta pci-a.asm
Microsoft (R) Macro Assembler Version 10.00.30319.01Copyright (C) Microsoft Corporation. All rights reserved.
Assembling: pci-a.asmpci-a.asm(224) : warning A4023:with /coff switch, leading underscore required for start address : Code_Entry
C:\Users\Administrator\Desktop>D:\MASM611\BIN\link pci-a.obj, pci-a.exe;
Microsoft (R) Overlay Linker Version 3.60Copyright (C) Microsoft Corp 1983-1987. All rights reserved.
PCI-A.OBJ : fatal error L1101: invalid object modulepos: 1 Record type: 4C