编译过程
文章平均质量分 73
melong100
这个作者很懒,什么都没留下…
展开
-
expected declaration specifiers or ‘...’ before
<br />原因:头文件包含混乱!!<br />实例:<br />In file included from ftpp.h:6:0,<br /> from ftpp.c:2:<br />parser.h:17:30: 错误:expected declaration specifiers or ‘...’ before ‘tFtpMsg’<br />parser.h:19:30: 错误:expected declaration specifiers or ‘...’ be原创 2011-05-17 10:05:00 · 12509 阅读 · 2 评论 -
GNU Configure 中的 build target和host 的区别
<br />转【http://wifihack.net/blog/2008/08/gnu-configure-%E4%B8%AD%E7%9A%84-build-target%E5%92%8Chost-%E7%9A%84%E5%8C%BA%E5%88%AB/】<br />一、 http://en.wikipedia.org/wiki/Cross_compile<br />The GNU autotools packages (i.e. autoconf, automake, and libtool) use转载 2011-04-25 13:56:00 · 1458 阅读 · 0 评论 -
linux make menuconfig 执行流程小结
<br /> linux/2.6.20.6/make menuconfig <br /> <br /> <br />当在顶层目录执行”make menuconfig”会执行顶层Makefile 第415行的规则 <br /> <br />config %config: scripts_basic outputmakefile FORCE <br /> $(Q)mkdir -p include/linux inclu转载 2011-04-25 15:49:00 · 779 阅读 · 0 评论 -
linux 顶层Makefile执行的流程!!!
<br />1、make menuconfig<br />VERSION = 2<br />PATCHLEVEL = 6<br />SUBLEVEL = 26<br />EXTRAVERSION =<br />NAME = Rotary Wombat<br /># *DOCUMENTATION*<br /># To see a list of typical targets execute "make help"<br /># More info can be located in ./README<br原创 2011-04-26 21:04:00 · 5629 阅读 · 1 评论 -
linux下编程的gcc编译中关于头文件与库文件搜索路径相关问题(一)
在交叉编译的时候我们需要用到其他的库,在 config 时候可以通过 “-I” 来指定头文件目录,但是每次都需要设置的话难免有些麻烦,找到一个简单的方法。看下文的红色部分。有大量的环境变量可供设置以影响 GCC 编译程序的方式。利用这些变量的控制也可使用合适的命令行选转载 2011-09-26 17:53:41 · 1555 阅读 · 0 评论 -
“undefined reference to
今天这个“undefined reference to”搞来好久原来就是Makefile写错了,1 DIR =./ 2 CC =g++ 3 CFLAG =-g -Wall 4 main:main.o 5 $(CC) -I$(DIR) $(CFLAG) -o main main.o 6 main.o:main.cpp 7 $(CC) -I$原创 2011-03-30 20:38:00 · 582 阅读 · 0 评论 -
gcc编译选项全集
GCC常用选项选项 含义--help --target-help 显示 gcc 帮助说明。‘target-help’是显示目标机器特定的命令行选项。--version 显示 gcc 版本号和版权信息 。-o outfile 输出到指定的文件。-x language 指明使用的编程语言。允许的语言包括:c c++ assembler n转载 2011-12-08 12:07:53 · 1949 阅读 · 1 评论