一步步调试 makefile
我想调试 makefile 。我在 Stackoverflow 上看到了很多帖子,但仍然需要一些帮助。
INCLUDEPATHS=/I"/C:/wxWidgetsDev/lib/vc_lib/mswd" /I"/C:/wxWidgetsDev/include/msvc/"
LIBPATHS=LIBPATH:"/C:/wxWidgetsDev/lib/vc_lib"
HEADERS=headers.h util.h main.h serialize.h uint256.h db.h base58.h
我正在使用 Visual Studio 2008。
INCLUDEPATHS 和 LIBPATHS 分别引用包含文件和 lib 文件
我在命令提示符中给出以下命令
nmake -f makefile.vc
fatal error C1083: Cannot open include file 'wx/wx.h.
wx/wx.h 文件存在于 INCLUDEPATH C:/wxWidgetsDev/include/msvc/ 中,但它仍然标记错误。
I want to debug a makefile . I came across many posts in Stackoverflow but still need some help .
INCLUDEPATHS=/I"/C:/wxWidgetsDev/lib/vc_lib/mswd" /I"/C:/wxWidgetsDev/include/msvc/"
LIBPATHS=LIBPATH:"/C:/wxWidgetsDev/lib/vc_lib"
HEADERS=headers.h util.h main.h serialize.h uint256.h db.h base58.h
I am using Visual Studio 2008.
The INCLUDEPATHS and LIBPATHS refer to the include and lib files respectively
I am giving the following command in the commandprompt
nmake -f makefile.vc
fatal error C1083: Cannot open include file 'wx/wx.h.
The wx/wx.h file is present in the INCLUDEPATH C:/wxWidgetsDev/include/msvc/ , but its still flagging the error .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好的,第一步:makefile 编译器行中是否使用了
%INCLUDEPATHS%
?否则,您只是设置了一个在任何地方都没有使用的环境变量:-)我不知道这是否应该由编译器自动添加,或者您是否必须手动添加。
另外,您在问题中同时引用了
INCLUDEPATHS
和INCLUDEPATH
- 如果是自动的,应该是哪一个。如果是手动的,您可以将其设置为任何内容,只要将其添加到编译行即可。Okay, first step: Is
%INCLUDEPATHS%
being used in the makefile compiler line? Otherwise, you're just setting an environment variable that's being used exactly nowhere :-)I don't know if this is supposed to be automatically added by the compiler or whether you have to do it manually.
Also you refer to both
INCLUDEPATHS
andINCLUDEPATH
in your question - which should it be, if automatic. If manual, you can make it anything just so long as you add it to the compile line.根据您对第一个答案的评论,是否它不处理路径名中的空格?
Per your comment on the first answer, could it be that it doesn't handle spaces in the pathname?