G++尽管存在中的标题包括路径,但在编译过程中仍未找到标头文件
我正在尝试运行页面底部找到的SFML示例这里使用VSCODE和G ++。
在汇编之前,SFML包括文件c:\ gl \ sfml-master \ include
在C ++配置中包括路径。如果我更改此问题,则VScode会引发错误,因此我不相信这是问题所在。
但是,当我运行/调试文件时,g ++投掷致命错误:sfml/audio.hpp:没有这样的文件或目录
我尝试使用文件位置和路径,但我不是非常确定实际上出了什么问题。
我程序中唯一的代码是上面的示例,我所做的唯一更改是到包括路径,当然我实际上已经下载了SFML。我正在使用G ++ 12.1.0和SFML 2.5.1,如果有任何区别。
I'm trying to run the SFML example found at the bottom of the page here using VSCode and g++.
Before compilation, the SFML include file C:\GL\SFML-master\include
is in the C++ Configurations include path. VSCode throws errors if I change this, so I don't believe it's the problem.
However, when I run/debug the file, g++ throws fatal error: SFML/Audio.hpp: No such file or directory
I've tried playing around with the file location and path but I'm not quite sure what is actually going wrong.
The only code in my program is the example above, and the only changes I've made is that to the include path, and of course I actually have SFML downloaded. I'm using g++ 12.1.0 and SFML 2.5.1 if that makes any difference.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论