Codeblocks的Cygwin编译器不工作 [英] Codeblocks' Cygwin compiler isn't working

查看:1052
本文介绍了Codeblocks的Cygwin编译器不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用代码块的Cygwin的默认设置,我得到以下错误。

Using the default setup for Cygwin with codeblocks, I get the following error.

"NameScanner - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done.

我尝试过自定义安装说明,并给我在 cstdlib 这个默认文件的错误

I tried their custom installation instructions and that gave me this error on cstdlib, a default file

C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\cwchar|249|error: `::wcstold' has not been declared|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\cwchar|265|error: `__gnu_cxx::wcstold' has not been declared|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\cstdlib|181|error: `::strtold' has not been declared|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\cstdlib|200|error: `__gnu_cxx::strtold' has not been declared|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|44|error: `_UPPER' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|45|error: `_LOWER' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|46|error: `_ALPHA' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|47|error: `_DIGIT' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|48|error: `_HEX' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|49|error: `_SPACE' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|50|error: `_BLANK' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|50|error: `_PUNCT' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|50|error: `_ALPHA' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|50|error: `_DIGIT' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|51|error: `_PUNCT' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|51|error: `_ALPHA' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|51|error: `_DIGIT' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|52|error: `_CONTROL' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|53|error: `_PUNCT' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|54|error: `_ALPHA' was not declared in this scope|
C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\mingw32\bits\ctype_base.h|54|error: `_DIGIT' was not declared in this scope|
C:\...\NameScanner\name.cpp|3|regex: No such file or directory|
C:\...\NameScanner\name.cpp||In constructor `Name::Name(std::string)':|
C:\...\NameScanner\name.cpp|19|error: `regex_match' undeclared (first use this function)|
C:\...\NameScanner\name.cpp|19|error: (Each undeclared identifier is reported only once for each function it appears in.)|
||=== Build finished: 24 errors, 0 warnings ===|

任何帮助。

推荐答案

我建议你卸载一切,下载这个版本的codeblocks并安装它。它已经包含你需要的一切(这将是GCC)。

I suggest you uninstall everything, download this version of codeblocks and install it. It already comes with everything you need (that would be GCC).

这篇关于Codeblocks的Cygwin编译器不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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