codeblocks “can't find compiler executable in yourconfigured search ……”

新安装的codeblocks 16.01,安装后打开提示如下,没法用。。原因是编译器并没有找对自己安装的 mingw 的安装位置。

解决办法:如下图点击 Auto-detect 之后,会看到位置信息变成了自己安装路径下的 Mingw 的路径(其实打开的时候,你会发现,下面圆框里面的路径并不是mingw的真实路径)。

点击 ok,保存即可。这样就可以编译基本的C++程序了。

但是引入某些库的时候会提示没有声明或者不存在,比如:

因为unordered_map是C++11新增的特性,我们只需要让编译器支持C++11就行了。

这个时候,只需要勾选如下如所示:

点击ok,保存即可

编译成功:

主要是之前安装的环境不知道为啥不能用了,就又装了一遍,真麻烦。。。。。。

codeblocks “can't find compiler executable in yourconfigured search ……”

时间: 2024-07-30 05:05:41

codeblocks “can't find compiler executable in yourconfigured search ……”的相关文章

Environment error: “CodeBloks can't find compiler executable in your configured search path's for GNU GCC compiler”

codeblock安装后,提示cant find compiler executable in your configured search paths for GNU GCC Compiler 可能的情况有两个: 1)安装的是不带编译器的版本 2)安装了带编译器的版本,但是没有指定正确的路径. 解决办法: 对于第一种情况,直接在官网下载带有编译器的版本:  官网链接:http://www.codeblocks.org/downloads/26#windows { 或者下载MinGW-w64:h

CodeBlocks安装足球投注平台搭建及配置编译器问题

心血来潮复习足球投注平台搭建论坛:haozbbs.com Q1446595067 C语言,放下两年的东西再捡起来还是有点困难,甚至从安装环境就开始出问题.为与其他菜鸟级别玩家共同学习,特开此贴将自己遇到的问题和解决方法全部记录下来,以吸取教训. 下载安装包 习惯了一键式傻瓜安装:百度搜索官网,官网直接点击download,下载界面直接选择第一条,下载完安装包进入安装界面疯狂下一步下一步.看似完成了codeblocks的安装,但在建立newproject时发现居然"hello world"

Windows下Codeblocks 搭建WinPcap捕包环境

1.下载并安装WinPcap运行库:http://www.winpcap.org/install/default.htm 2.下载WinPcap开发包:http://www.winpcap.org/devel.htm,解压到存英文路径,文件目录结构如图1. 3.打开Codeblocks,选择Settings -> Compiler,如图2,添加WPCAP和HAVE_REMOTE两个宏定义,如图3. 4.如图4,添加wpcap.lib和ws2_32.lib两个库文件.wpcap.lib位于图1的L

GCC --verbose选项, -lpthread 和-pthread的区别

verbose的意思是冗长的,繁杂的.顾名思义,gcc --verbose 的意思就是打印出编译连接时的详细信息. 参考stackoverflow中的文章结合自己机器的信息给出分析(其实也就是翻译了一下..嘿嘿.  原址:http://stackoverflow.com/questions/13440549/gcc-verbose-mode-output-explanation) 首先给出整体信息: [email protected]:~/APUE3/Chapter11$ gcc printid

linux 下 一步一步安装odb

Introduction This guide presents step-by-step instructions for installing the ODB system on UNIX-like operating systems, such as GNU/Linux, Solaris, etc. For Mac OS X, first see Installing ODB on Mac OS X. For MinGW/MinGW64 (either directly as past o

AppFuse 3的乱码问题

书接上回:AppFuse 3常见问题与解决方法,一个新问题:乱码! 在3.0.0版本号下,运行mvn appfuse:full-source命令后使用mvn jetty:run启动工程,页面上就出现了乱码.我要说的是这个乱码问题很有趣,它的有趣之处在于最后的解决方法看上去与问题差的太远.这个解决方法是:找到pom中对hibernate3-maven-plugin的配置,将当中的<executions/>部分凝视掉,即不在process-test-resources阶段运行hbm2ddl. (假

Building clang on RedHat

http://btorpey.github.io/blog/2015/01/02/building-clang/ clang is a great compiler, with a boatload of extremely helpful tools, including static analysis, run-time memory and data race analysis, and many others.  And it's apparently pretty easy to ge

IDEA Maven项目 编译的问题

IDEA中,点击项目的maven插件的 compile: 出现: [INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project j360-deliver: Compi

【嵌入式开发】gcc 学习笔记(一) - 编译C程序 及 编译过程

一. C程序编译过程 编译过程简单介绍 : C语言的源文件 编译成 可运行文件须要四个步骤, 预处理 (Preprocessing) 扩展宏, 编译 (compilation) 得到汇编语言, 汇编 (assembly) 得到机器码, 连接 (linking) 得到可运行文件; -- 查看每一个步骤的编译细节 : "-E" 相应 预处理, "-S" 相应 编译, "-c" 相应 汇编, "-O" 相应 连接; -- 每一个步骤