wxWidgets-2.9.4 \include和\lib\gcc_lib\mswu没有这样的文件或目录错误CodeBlocks [英] wxWidgets-2.9.4\include and \lib\gcc_lib\mswu No such file or directory error on CodeBlocks

查看:366
本文介绍了wxWidgets-2.9.4 \include和\lib\gcc_lib\mswu没有这样的文件或目录错误CodeBlocks的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用wxWidgets和CodeBlocks(与MinGW)学习C ++编程,今天早些时候我成功地安装软件(一些麻烦后)到我的Windows 7计算机,在这篇文章中给我的指导:



wxWidget 2.8。 12不在代码块中工作



在同一天晚些时候,我在另一台Windows 7机器上执行了完全相同的步骤,并且在创建wxWidgets项目并尝试编译和运行它我有以下错误:

  \wxWidgets-2.9.4\include:没有这样的文件或目录
\wxWidgets-2.9.4\lib\gcc_lib\mswu:没有这样的文件或目录

我已经检查,这些文件夹真的确实存在那些位置...所以似乎是这里的问题吗?在早期的帖子用户asanth kumar指导我,如果指南中给出的步骤没有工作完成,那么我在我的构建选项中缺少一个重要的编译器搜索路径。



好,我该怎么办?在哪里输入搜索路径?什么是搜索路径等等。我很新的wxWidgets和CodeBlocks,所以我不知道很多术语。如果任何人应该知道该怎么做,你能请给我像一步一步的指导什么做。像单击项目 - >生成选项 - > ...等等



我使用最新的CodeBlocks(12.11)和wxWidgets(2.9.4)安装程序



感谢您的帮助:)



更新:



这里是构建日志:(我使用CodeBlocks 12.11和wxWidgets 2.9.4)

  ---- ---------- Build:在TEST中调试(编译器:GNU GCC Compiler)--------------- 

windres.exe -I C:\Users\Jonne\Omat ohjelmat\wxWidgets-2.9.4\include-IC:\Users\Jonne\Ohm ohjelmat\wxWidgets-2.9.4\lib\\ \\ gcc_lib \mswu-J rc -O coff -i C:\Users\Jonne\DOCUME〜1 \CODEBL〜1 \TEST\resource.rc -o obj \Debug\resource。 res
gcc:error:ohjelmat\wxWidgets-2.9.4\include:没有这样的文件或目录
gcc:error:ohjelmat\wxWidgets-2.9.4\lib\gcc_lib\ mswu:没有这样的文件或目录
windres.exe:预处理失败。
进程以状态1(0分钟,0秒)终止
3个错误,0个警告(0分钟,0秒)

这里还有一个图片,您可以在我的CodeBlocks上看到Build选项,全局变量和构建日志:





注意未来的读者:安装wxWidgets到路径名中没有空格的目录。这篇文章中的问题是因为目录路径中有空格。

解决方案

当你创建一个wxWidgets项目。



File-> New-> Project-> wxWidgets Project->单击Go->下一步 - >点击合适的wxWidgets 2 ...版本 - >点击下一步 - >授予项目名称 - >点击下一步 - >点击下一步



之后,向导中会显示以下屏幕。提供wxWidgets位置(安装wxWidgets 2.9.4的路径)











之后点击完成。




  • >
  • 高级系统设置 - >点击环境变量 - >点击New->给变量名=路径和变量值=C:\Program文件(x86)\CodeBlocks\MinGW\bin - > ;点击确定






`




  • 尝试以下步骤。它将工作。






构建设置






I'm trying to learn C++ programming with wxWidgets and CodeBlocks (with MinGW) and earlier today I succeeded in installing the software (after some trouble) to my Windows 7 computer with the guidance given to me in this post:

wxWidget 2.8.12 not working in Codeblocks

Later on the same day, I did the exact same steps on another Windows 7 machine and after creating a wxWidgets project and trying to compile and run it I got the following errors:

\wxWidgets-2.9.4\include: No such file or directory
\wxWidgets-2.9.4\lib\gcc_lib\mswu: No such file or directory

I have checked and these folders really do exist on those locations...so what seems to be the problem here again?...on the earlier post user asanth kumar guided me that if the steps given in the guide don't get the job done, then I'm missing an important compiler search path in my build options.

Ok, so what do I do? Where do I enter the search path? What is the search path, etc. I'm very new with wxWidgets and CodeBlocks so I don't know very much terminology. If anyone should know what to do, could you please give me like step by step instruction what to do e.g. like Click Project --> Build options --> ... and so on

I have used the latest CodeBlocks (12.11) and wxWidgets (2.9.4) installers

Thank you for any help :)

UPDATE:

here is the build log: (I'm using CodeBlocks 12.11 and wxWidgets 2.9.4)

   -------------- Build: Debug in TEST (compiler: GNU GCC Compiler)---------------

windres.exe -I"C:\Users\Jonne\Omat ohjelmat\wxWidgets-2.9.4\include" -I"C:\Users\Jonne\Omat ohjelmat\wxWidgets-2.9.4\lib\gcc_lib\mswu"  -J rc -O coff -i C:\Users\Jonne\DOCUME~1\CODEBL~1\TEST\resource.rc -o obj\Debug\resource.res
gcc: error: ohjelmat\wxWidgets-2.9.4\include: No such file or directory
gcc: error: ohjelmat\wxWidgets-2.9.4\lib\gcc_lib\mswu: No such file or directory
windres.exe: preprocessing failed.
Process terminated with status 1 (0 minutes, 0 seconds)
3 errors, 0 warnings (0 minutes, 0 seconds)

Here is also a picture where you can see Build options, global variables and build log on my CodeBlocks:

NOTICE FUTURE READERS: Install wxWidgets to a directory without whitespace in the path name. The problems in this post was because the directory path had spaces in it

解决方案

When you create a wxWidgets project.Have you did this?

File->New->Project->wxWidgets Project->Click Go->Click on Next->click on the suitable wxWidgets 2...version->click Next->Give project Name->Click on Next->Click on Next

After that the Following below Screen comes in the Wizard. Give the wxWidgets Location(Path where You installed the wxWidgets 2.9.4)

After that click on Finish.

  • For Environment Variable Path Setting
  • Follow the Below Steps:

    Right click on MyComputer->Click on Advanced Systems settings->click on Environment Variables->click on New->Give variable name=Path and variable value="C:\Program Files (x86)\CodeBlocks\MinGW\bin" -> click ok

`

  • Try The Following Steps.It will work.

Updates about Build settings:

这篇关于wxWidgets-2.9.4 \include和\lib\gcc_lib\mswu没有这样的文件或目录错误CodeBlocks的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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