Visual C++ 2005 无法找到 dxtrans.h,尽管它位于我的包含目录的第一个文件夹中
我将 2007 directx sdk 包含目录设置为 Visual C++ 2005 中包含文件目录列表中的第一个条目,并且该目录包含 dxtrans.h。然而,当我尝试构建我的项目时,我得到“要编译 qedit.h,您必须安装 DirectX 9 SDK,才能获取 dxtrans.h 标头。”,并伴有 Windows sdk 标头(amstream.h、 qedit.h 等)。为了让编译器找到 dxtrans.h,我还需要执行其他一些魔法吗?该错误消息是为了转移注意力吗?
I have the 2007 directx sdk include directory set as the first entry in the Include Files directory list in Visual C++ 2005, and that directory contains dxtrans.h. Yet when I try to build my project, I get "To compile qedit.h you must install the DirectX 9 SDK, to obtain the dxtrans.h header.", accompanied by hundreds of syntax errors in windows sdk headers (amstream.h, qedit.h, etc). Is there some other magic incantation I need to perform in order to get the compiler to find dxtrans.h? Is the error message a red herring?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
打开一个新文件: dxtrans.h
请将以下内容粘贴到文件中,然后将文件移动到 C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include
open a new file: dxtrans.h
please paste follow content into the file, then move file to C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include
是的,这确实是一条红鲱鱼。这不是一条错误消息,只是一条旨在提供帮助的通知。它的生成方式是:
注意前几条真实编译器错误消息,无论它们是什么。
Yes, it is indeed a red herring. It is not an error message, merely a notification that was meant to be helpful. It is generated by:
Pay attention to the first few real compiler error messages, whatever they may be.