Linux下Code::Blocks无法编译运行提示 /bin/sh: 1: g++ not found 的解决办法 今天在Ubuntu 12.04 软件中心中选装了Code::Blocks,安装完成后却连最简单的hello world 都无法编译运行. 编译时提示 /bin/sh: 1: g++: not found 运行时总提示 It seems that this file has not been built yet. Do you want to build it now? 因为系统没…
在具体的操作之前,首先需要安装一些必要的软件.ubuntu下默认安装了gcc,不过缺少必要的Header file,可以在命令行中输入下面的指令安装build-essential套件:sudo apt-get install build-essential使用GTK+2.0需要安装GTK开发套件,在命令行中输入下面的指令安装GTK开发套件libgtk2.0-dev:sudo apt-get install libgtk2.0-dev安装完成后,可以使用pkg-config查看一下GTK的相关编译…
code::blocks编译运行C++程序(F9)默认出现的运行串口在有鼠标的情况下进行粘贴还是很方便的,只要按下鼠标滑轮,位与剪切板中的数据就能粘贴到运行串口中.但是对于用笔记本而且没有鼠标地童鞋这就比较麻烦了.这个时候可以将code::blocks默认的运行窗口改成Linux的命令行窗口.可以在code::blocks下通过如下过程进行配置: settings-->environment-->generalsettings-->Terminal to launch console p…
今天拿着我的tiny6410板子,在虚拟机上用 $arm-linux-gcc he.c -o he 编译后放到tiny6410的文件系统中提示 -/bin/sh: ./xx: not found 后来发现这是因为没有找到应用程序所需要的库 所以改成静态编译就可以了 $arm-linux-gcc -static he.c -o he…
操作系统:Ubuntu 15.04 gcc version 4.9.2 opengl安装 sudo apt-get install build-essential libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev 测试: include <GL/glut.h> void init(void) { glClearColor(0.0, 0.0, 0.0, 0.0); glMatrixMode(GL_PROJECTION); glOrtho(-5, 5,…
#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.#endif 解决方法:工程上右键,选择build options,在compiler setting…
环境介绍: 开发板:qq2440 交叉编译器:arm-linux-gcc 3.4.1 内核版本:2.6.13 一.针对该类问题从两个方面入手: 1.从权限出发,权限不够会出现此问题 2.从库文件出发,一般是缺少库文件导致的 二.正好我今天遇到的是第二种情形: 1.查看应用程序led需要的库文件:arm-linux-readelf -a led,该命令输出的内容如下: ELF Header:  Magic:   7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 0…
原因:环境未配置 执行[vim ~/.bashrc]命令,进入配置文件,在最后一行按'o'插入一行,并添加语句: export PATH=/home/duanyongchun/anaconda3/bin:$PATH 重启环境变量: source ~/.bashrc…
/usr/bin/ld: cannot find -lxxx 的解决办法 在软件编译过程中,经常会碰到类似这样的编译错误: /usr/bin/ld: cannot find -lhdf5 这表示找不到库文件 libhdf5.so,若是其它库文件,则是 cannot find -lxxx 了,其中 xxx 是库文件的名字. 解决方法有: 1. 安装此库文件和相关软件 一般库文件属于某个软件,google搜索该软件并安装,或者使用 yum 安装. 2. 将库文件所在路径添加到gcc的搜索路径 使用以…
按此文章<Hadoop集群(第7期)_Eclipse开发环境设置>进行MapReduce开发环境搭建的过程中遇到一些问题,饶了一些弯路,解决办法记录在此: 文档目的: 记录windows环境下Eclipse开发MapReduce程序遇到的四个问题及解决办法: 问题一:程序运行时报JobTracker is in safe mode: security.UserGroupInformation: PriviledgedActionException as:hadoop cause:org.apa…