代码块13.12构建错误:错误的包含路径 [英] Code Blocks 13.12 build errors: wrong include paths

查看:85
本文介绍了代码块13.12构建错误:错误的包含路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是从使用13.12的code :: blocks开始,并且正在尝试wiki.codeblocks.org上的简单的 Hello,World WxSmith教程,但是我无法正确完成资源编译器。我几乎没有对新项目向导为我创建的内容进行任何更改。这是构建日志:

I'm just starting up with code::blocks using 13.12 and am attempting the simple "Hello, World" WxSmith tutorial at wiki.codeblocks.org, but I can't get the resource compiler to complete without errors. I've not made hardly any changes to what the new project wizard created for me. Here's the build log:

windres.exe -I C:\WxWidgets 3.0.0\包括 -I C:\WxWidgets 3.0.0\ \lib\gcc_dll\mswud -J rc -O coff -i C:\用户\John\DOCUME〜1\CODEBL〜1\TUTORI〜1\resource.rc -o obj\ Debug\resource.res
gcc:错误:3.0.0\include:无此类文件或目录
gcc:错误:3.0.0\lib\gcc_dll\mswud:无此类文件或目录
windres.exe:预处理失败。
进程终止,状态为1(0分钟,4秒)
3错误,0警告(0分钟,4秒)

windres.exe -I"C:\WxWidgets 3.0.0\include" -I"C:\WxWidgets 3.0.0\lib\gcc_dll\mswud" -J rc -O coff -i C:\Users\John\DOCUME~1\CODEBL~1\TUTORI~1\resource.rc -o obj\Debug\resource.res gcc: error: 3.0.0\include: No such file or directory gcc: error: 3.0.0\lib\gcc_dll\mswud: No such file or directory windres.exe: preprocessing failed. Process terminated with status 1 (0 minute(s), 4 second(s)) 3 error(s), 0 warning(s) (0 minute(s), 4 second(s))

我不明白也不明白为什么发生gcc:错误:。与在命令行中指定的 WxWidgets 3.0.0 ...相对应,它在哪里/如何查找 3.0.0 ...?

I don't see nor understand why the gcc: error:(s) are occuring. Where/How is this looking for "3.0.0..." as opposed to "WxWidgets 3.0.0..." as specified in the command line? Could this be a problem with the directory having a space in it?

在此先感谢
Jay

Thanks in advance, Jay

推荐答案

已解决,很好。

我确实看到了有关旧版WxWidgets的注释,该注释指出不使用任何带有空格的目录。因此,我创建了另一个目录 c:\WxWidgets_3.0.0,并将所有内容从旧目录复制到该目录中。然后,我删除并重新创建了教程项目,并在新项目向导中指定了新目录。它编译干净,尽管WxWidgets在编译时会发出一堆警告,但结果确实可以运行。

I did see a note for an older release of WxWidgets that stated to not use any directory with spaces embedded. So, I created another directory as "c:\WxWidgets_3.0.0" and wholesale copied everything from the old directory into it. Then, I deleted and recreated the tutorial project and in the new project wizard, specified the new directory. It compiled cleanly, although WxWidgets throws a bunch of warnings in compilation, but the result does run.

这篇关于代码块13.12构建错误:错误的包含路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆