使用相对路径在Visual Studio中包含MASM库

问题描述 投票:0回答:1

我试图将路径C:\masm32添加到Include Paths中的Project -> Properties -> Microsoft Macro Assembler -> General -> Include Paths。然后,汇编器使用以下命令编译我的项目:

ml.exe /c /nologo /Zi /Fo"Debug\test.obj" /l "C:\masm32" /W3 /errorReport:prompt /Tatest.asm"

[确实包含了我的库路径,但是在我的代码中,它不断告诉我仅在\include\kernel32.inc的那部分有错误

我的包括: ... includelib \lib\kernel32.lib ;These two .lib files seem to have includelib \lib\masm32.lib ;no error even if i remove the .inc files include \include\kernel32.inc ;It only reports error for .inc files include \include\masm32rt.inc ;cannot open file: \include\kernel32.inc ... 这与include \include\...使用的关键字相同吗?

assembly visual-studio-2017 masm
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.