用源码编译gcc完成后,如何设置,比如LIB库要不要做连接或设路径,我现在只做了bin下的几个文件到到/usr/bin目录下(gcc g++ gcj) 现在用gcc编译APACHE 时出现如下错误: [root@www httpd-2.0.53]# ./configure --prefix=/opt/apache checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... i686-pc-linux-gnulibc1 checking host system type... i686-pc-linux-gnulibc1 ch...
typedef struct ctst{ unsigned short pll_iset :2, pll_inv :2, pll_reset :1, pll_r :9, rfu :2; }TST; int main(void) { unsigned short t1; t1 = 0x0000; ((TST *)&t1)->pll_r = 0x18; ((TST *)&t1)->pll_inv = 1; printf("the t1 = 0x%x\n",t1); ((TST *)&t1)->pll_inv = 2; printf("the t1 = 0x%x\n",t1); ((TST *)&t1)->pll_inv = 3; printf("the t1 = 0x%x\n",t1); return 0; } 在PC...
http://ccb.77jj.com/user03/bbs/ccb/topic_view.cgi?forum=5&article_id=0005040116184635&publishtime_id=0005040116184635&page=15 我们的论坛:http://byoneself.yeah.net
是不是要加什么参数?不过记得有个命令专门用来展开宏定义文件的,不过忘了啥命令了,有谁知道吗? [ 本帖最后由 bierdaci 于 2007-10-16 20:10 编辑 ]
环境 gcc的版本2.95 OS:HP-UX name B.11.00 U 9000/800 所有不涉及到多线程的程序移植后,都能正确的运行, 但是使用多线程的程序,在编译的时候报出头文件unistd.h和头文件pthread.h中方法extern int pthread_atfork的声明冲突, 将unistd.h头文件中的该声明屏蔽后,编译程序通过。 但是编译成功的程序运行时,总是Memory fault(coredump)。查看core文件,毫无头绪。 编译的参数如下: CPPLAG = -g -c -pipe -fomit-frame-poi...
我用gcc -o test test.c编译test.c为什么执行test文件时没有任何结果, 而使用gcc -o abc test.c则可以得到正确结果? 是不是指定的文件名不能与源文件相同?
以下gcc包分别都有些什么作用: gcc-3.2.2-5.i386.rpm; gcc-c++3.2.2-5.i386.rpm; gcc-g77-3.2.2-5.i386.rpm; gcc-gnat-3.2.2-5.i386.rpm; gcc-java-3.2.2-5.i386.rpm; gcc-objc-3.2.2-5.i386.rpm. 弄了好久也弄不明白..