ChinaUnix.net
相关文章推荐:

gcc编译错误Link tests are not allowed after

gcc -g -Wall -c -o dnstop.o dnstop.c In file included from dnstop.c:10: /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/include/sys/types.h:27:26: sys/isa_defs.h: No such file or directory /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/include/sys/types.h:28:31: sys/feature_tests.h: No such file or directory /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/include/sys/types.h:33:27: sys/ma...

by yinyi2008 - Solaris - 2005-08-24 12:02:53 阅读(920) 回复(4)

相关讨论

在solaris下用gcc编译一个c文件,出现如下错误: error:stray '\241' in program 请问这是什么错误

by jerry10 - Solaris - 2004-09-08 16:26:59 阅读(578) 回复(0)

#include ; #define BUFFSIZE 8192 int main(void) { int n; char buf[BUFFSIZE]; while ( (n = read(STDIN_FILENO, buf, BUFFSIZE)) >; 0) if (write(STDOUT_FILENO, buf, n) != n) err_sys("write error"); exit(0); } 编译时产生如下错误: bash-2.05# gcc -o myread myread.c myread.c:17:1: warning: no newline at end of file 未定义 文件中的 符号 ...

by gonglifeng - C/C++ - 2003-09-05 11:18:55 阅读(840) 回复(4)

#include; #include; #include; #include; #include; int main(int argc, char **argv) { int sockfd; struct sockaddr_in servaddr; sockfd = socket(AF_INET, SOCK_STREAM, 0); bzero(&servaddr, sizeof(servaddr)); servaddr.sin_family = AF_INET; servaddr.sin_port = htons("3200"); servaddr.sin_addr.s_addr = inet_addr("127.0.0.1"); connect(...

by waldner616 - Solaris - 2003-05-19 16:21:58 阅读(879) 回复(2)

请问各位: 在gcc 编译c程序时出现如下的错误: /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/include/varargs.h:4:2: #error "gcc no longer implements ." /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/include/varargs.h:5:2: #error "Revise your code to use ." 请问如何解决? 我的gcc 版本是:gcc version 3.3.2 有谁知道的,请回复!谢谢!

by simonzh - Solaris - 2006-02-21 14:54:48 阅读(1418) 回复(4)

我在帽子9.0下驱动我的D-link网卡 在生成文件via-rhine.o时出现一下问题 望大侠指点迷津。 [root@localhost tmp]# make all gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -I/usr/src/linux/include -c via-rhine.c sh: line 1: gcc: command not found make: *** [via-rhine.o] Error 127 我的内核版本号为: [root@localhost tmp]# cat /proc/version Linux version 2.4.20-8 (bhcompile@porky.devel.redhat.co...

by qiuzhiyun - 网络与硬件 - 2004-03-04 22:59:17 阅读(653) 回复(2)

再solaris9 x86环境下使用gcc 3.3 编译 [code] #include ; typedef struct _aaa_ { int bbb; int ccc; int ddd; }aaa; aaa gAaa={ 1, 2, 3 }; #define PRINT_ERR( err ) \ do { \ printf("%d\n", gAaa##.err); \ }while(0) int main() { PRINT_ERR(bbb); PRINT_ERR(ccc); PRINT_ERR(ddd); return 0; } [/code] 出现错误 [code] t1.c:19:18: pasting "gAaa" and "." d...

by ximurong - C/C++ - 2005-01-06 09:40:40 阅读(1178) 回复(8)

ocintab.inl:28: error: there are no arguments to `get_session' that depend on a template parameter, so a declaration of `get_session' must be available

by sanpan - 程序开发 - 2005-12-11 19:45:13 阅读(577) 回复(1)

gcc version:3.3.2 solaris 10 # pkginfo | grep gcc application SMCgcc gcc system SUNWgcc gcc - The GNU C compiler system SUNWgccruntime gcc Runtime libraries PATH=/opt/SUNWspro/bin:/orabin/product/9.2.0.8/bin:/usr/sbin:/usr/ccs/bin:/usr/bin:/usr/ucb:/etc:.:/usr/local/bin:/usr/bin: 但是编译的时候还是报错: *.o: No such...

by JeanWan - Solaris - 2009-04-03 13:37:52 阅读(2980) 回复(16)

今天别人给我发了个程序,用g++编译没问题,而gcc编译则有问题, 因为我是用C++的,一般用g++,我想请教下各位到底是什么原因,先谢谢了。 [code] $ gcc -o private private.c private.c: In function ‘main’: private.c:28: error: invalid application of ‘sizeof’ to incomplete type ‘struct msgbuf’ private.c:29: error: dereferencing pointer to incomplete type private.c:30: error: dereferencing pointer to ...

by antonym55 - C/C++ - 2013-08-14 12:59:39 阅读(3717) 回复(9)

我在开发一个项目中一些是用C语言写的, 一些是用C++写的. 在C语言中我不得不调用C++写的相关方法, 为了编译过去, 我在写makefile文件中, gcc编译C文件, g++编译C++的文件. 编译没有问题.但是link不了. 该如何设置呢?谢谢.

by nelson_xia - C/C++ - 2006-01-22 00:27:46 阅读(1187) 回复(1)