1.查看并安装服务器是否安装编译器 make gcc gcc-c++ 查看:rpm -q
gcc-c++2.查看SELinux 和 iptables 的状态3.在根目录新建文件夹 lamp4.使用WINscp 上传 包5.解压压缩包 tar -zxf
httpd............6.编译 .....
分类:
系统相关 时间:
2014-05-23 06:57:15
阅读次数:
354
说明:我这里用的是Android
4.2.2自带的交叉编译工具。如果是使用host系统安装的,我觉得应该也是可以的。但是没有测试过。因为Android源代码已经自带了,所以大多数情况下,不需要再安装host系统的交叉编译工具。Android自带的交叉编译工具有两套,位于prebuilts/gcc/l...
分类:
移动开发 时间:
2014-05-23 06:06:33
阅读次数:
321
首先 , 对于redhat,openSuse来说 ,C/C++的编译器已经集成了
大多数应该使用的是Ubuntu ,Ubuntu只有gcc(一个编译C语言的编译器), 因此还需要使用命令apt-get g++ 来下载g++的编译器(PS:
g++是一个cpp的编译器) 然后可以使用vim 来测试了(...
分类:
编程语言 时间:
2014-05-23 05:13:49
阅读次数:
285
Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical an...
分类:
其他好文 时间:
2014-05-22 16:46:03
阅读次数:
173
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-05-22 16:05:56
阅读次数:
239
Two elements of a binary search tree (BST) are
swapped by mistake.Recover the tree without changing its structure.Note:A
solution using O(n) space is ...
分类:
其他好文 时间:
2014-05-21 19:11:16
阅读次数:
266
gcc编译的流程是先做编译前的预处理,主要是对头文件和宏处理,然后由编译器处理成汇编语言代码,再由汇编器处理成机器语言代码,最后又链接器生成可执行代码
列举几个常用的参数
-o FILE 指定输出的文件名为FILE
-E FILE 对FILE只进行预处理
-S FILE 对FILE只进行预处理和编译器得到汇编代码
-c FILE 对FILE处理得到目标代码
不加...
分类:
其他好文 时间:
2014-05-21 17:07:51
阅读次数:
180
uboot 源码包:u-boot1.1.6.tar
编译器:arm-linux-gcc-4.3.2
源码路径下配置 # make forlinx_nand_ram128_config
编译 # make
得到uboot.bin之后考到sd卡中,通过sd卡中的mmc.bin将uboot、kernel、filesystem烧到nandflash
启动出现一直重启的错误:
CPU: ...
分类:
其他好文 时间:
2014-05-21 15:40:24
阅读次数:
391
原因:MinGW没有安装c编译器。
MinGW的安装管理器的"Basic Setup"栏目找不到c编译器:
在“All Packages”->"MSYS"->"MSYS System Builder"栏目中勾选"msys-gcc":...
分类:
Windows程序 时间:
2014-05-21 13:48:54
阅读次数:
1228
likely() 与 unlikely()是内核(2.6的版本应该都有)中定义的两个宏。位于/include/linux/compiler.h中,
具体定义如下:
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
__builtin_expect是gcc...
分类:
系统相关 时间:
2014-05-21 06:36:34
阅读次数:
368