ChinaUnix.net
相关文章推荐:

gcc2953编译

问一个基础问题希望版主别封 有时候用gcc编译的时候最后需要加上类似 -lz -lm 的东西,这些东西都代表什么呢? 看了一些资料,对这些东西,都有一个统一说法 编译时要加载的库 但是z代表什么库呢? m又代表什么库呢? 哪位能给详悉解释一下么? 或者介绍一些有详悉解释的资料

by lishengxu - C/C++ - 2006-04-29 13:49:33 阅读(1843) 回复(13)

相关讨论

编译.cp文件时报如下错误: gcc: Unknown: No such file or directory gcc: machine: No such file or directory gcc: type.: No such file or directory gcc: Please: No such file or directory gcc: set: No such file or directory gcc: SYBPLATFORM: No such file or directory gcc: variable: No such file or directory gcc: Unknown: No such file or directory gcc: machine: No such file or directory 请问是不是环境变...

by yyqq88_2008 - C/C++ - 2009-06-03 16:13:36 阅读(1278) 回复(4)

implicit declaration of function `swprintf' 从网上搜解决方法,有人建议加上 -ansi=c99, 但加上后又出现了 error: parse error before '/' token extra tokens at end of #endif directive 这样的error. 好像gcc不认//这样的注释

by chouyatingde - C/C++ - 2009-02-27 18:09:03 阅读(2796) 回复(11)

error: invalid application of `sizeof' to incomplete type `arphdr' 不明白什么意思,哪位给解释下? struct arphdr {         unsigned short ar_hrd; /* format of hardware address */         unsigned short ar_pro; /* format of protocol address */         unsigned...

by smalloc - C/C++ - 2008-10-13 14:41:20 阅读(1480) 回复(8)

大家好,问这个问题前,我已经baidu,google过了。 这是一个makefile中的一部分: ------------------------------------------- TARGET := display capture FLAGS := -D_gcc_ -O2 -Wall CC := gcc all : $(TARGET) TARGET_DIR := /usr/local/bin -------------------------------------------- FLAGS 部分 -O2表示优化选项,-Wall 我也知道 但是 -D_gcc_ 这个东西是干什么用的?

by anank - C/C++ - 2008-08-22 01:49:21 阅读(1773) 回复(9)

main.cc: In function ‘int main()’: main.cc:12: warning: unused variable ‘myquadtree’ 我用gcc编译时 提示信息中 那个单引号怎么是中文的 在控制台下是乱码 我用的 是 ubuntu的英文环境 就怕中文乱码 没想到引号却还是中文的 怎么解决呢 大家有遇到这种情况的吗 请高手帮忙

by hitcs - C/C++ - 2008-04-19 09:46:45 阅读(1127) 回复(0)

机器上已经有3.4.6的gcc了。想装个3.2.3的(occi在3.4.6编译不过) >cd gcc-3.2.3 gcc-3.2.3>mkdir objdir gcc-3.2.3>cd objdir gcc-3.2.3/objdir>mkdir 1 gcc-3.2.3/objdir>../configure --prefix=gcc-3.2.3/objdir/1 --disable-libmudflap --enable-languages=c,c++ gcc-3.2.3/objdir>make 都通过了 make install时出错 /bin/sh: ../../../../libstdc++-v3/../install-sh: not found 这个是在目录gcc-3.2.3/objdir/spa...

by zhongyj - C/C++ - 2008-01-18 22:16:02 阅读(1198) 回复(0)

#include #define BUFFSIZE 9000 int main(void) { int n; char buf[BUFFZISE]; ...

by wuxiuqiang - C/C++ - 2007-10-09 11:28:13 阅读(1450) 回复(4)

我在FC4下用gcc, g++编译程序,结果程序的错误信息全是乱码,我程序中一个汉字都没有啊,怎么回事呢?又看不懂到底程序错在哪里,望各位帮帮忙,好像就是重程序里面取出来的内容不可以正确显示一样,要怎么办呢???写程序不可能不看提示撒~!

by jiangzy80 - C/C++ - 2007-09-28 11:22:40 阅读(9593) 回复(4)

我有个程序需要连接多个库,有些是公司内部的库提供.so和.a还要连接标准的库如pthread nsl。 不加-static动态编译可以通过。 但是加了-static就不能找到pthread nsl等系统的库了。 很是郁闷啊。 能不能做到只静态连接某一个库,其他的都动态连接。 在线等,各位大大赐教啊。

by SeaKing911 - C/C++ - 2011-02-17 21:07:35 阅读(19015) 回复(7)

。。。大哥门 我在编译的时候提示错误 在网上找地EXP ssh<=4.1 代码 在WIndows XP 下用Dev-C++ 编译。。。。代码如下 #!/bin/bash # # OpenSSH CRC compensation attack detection DoS PoC. # Tavis Ormandy <[email]taviso@google.com[/email]> # # Yes, I really did implement crc-32 in bash. # # usage: script # victim hostname hostname=${1:-localhost} --------------提示错误出在这里(为什么啊) por...

by 95968246393 - C/C++ - 2007-07-28 16:42:58 阅读(1550) 回复(3)