摘要: 简介gcc and g++现在是gnu中最主要和最流行的c & c++编译器 .gcc/g++在执行编译工作的时候,总共需要以下几步:1.预处理,生成.i的文件[预处理器cpp]2.将预处理后的文件不转换成汇编语言,生成文件.s[编译器egcs]3.有汇编变为目标代码(机器代码)生成.o的文件[汇编器as]4.连接目标代码,生成可执行程序[链接器ld]GCC能够处理的后缀有:a. *.c *.C (C语言)b. *.cxx *.cc (C++语言)c. *.m (面向对象的C)d. *.i (预处理后的C语言源文件)e. *.ii (预处理后的C++语言源文件)f. *.s *.S ( 阅读全文
posted @ 2013-03-12 23:32 张 三 阅读(34864) 评论(2) 推荐(3) 编辑
摘要: ##################################################### Generic makefile# for compiling and linking C++ projects on Linux ####################################################### Customising## Adjust the following if necessary; EXECUTABLE is the target# executable's filename, and LIBS is a list of 阅读全文
posted @ 2013-03-12 23:29 张 三 阅读(768) 评论(0) 推荐(0) 编辑