首页  

c和c++代码编译方法     所属分类 c 浏览量 639
yum -y install make automake libtool pkgconfig libaio-devel

./autogen.sh   生成 configure 脚本文件  (可选)

./configure    检查系统环境,配置编译选项 ,生成makefile

make 
从Makefile中读取指令编译


make install
从Makefile中读取指令,安装到指定位置
可能需要root 权限 ,因为要向系统写入文件


autoconf 和 automake 生成 Makefile
cmake或者autotools 生成 makefile

有些开源项目 使用 CMake 
根据 CMakeLists.txt 文件 生成makefile

上一篇     下一篇
linux性能监控

网络流量单位说明

make 和 make install 的区别

C++继承和派生

C++继承同名成员变量处理

C++动态内存分配实例