ld: (Warning) At least one PA 2.0 object file (sotest.o) was detected. 怎么可以去掉啊
by ChinaDream - HP-UX - 2005-10-08 12:43:36 阅读(1535) 回复(4)
:em21: 大哥大姐,我是高二学生,自学linux c编程。 现在碰见一个问题,就是ld这个链接工具不知道乍用,谁能提供一份中文的参考教程,最好带ld脚本资料的。 谢谢了.:em18: ,小弟自学的,如果有说错的话的地方,请见谅。
请教一个问题,我把一个linux下的程序拿到windows下用cygwin来编译,有个地方死活过不去.麻烦各位给点提示. 错误信息: [code] Yuri#make gcc -L../.. -ldmtx -lpng -lm -lGL -lGLU -lSDL -lpng -lpthread -Wall gltest.o ima ge.o display.o callback.o -o gltest /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -ldmtx collect2: ld returned 1 exit status make: *** [gltest] 错误 1 Yuri# ...
最近做了个GCC+newlib交叉编译环境 编译一个小的带socket函数的程序,出现了以下错误: tmp/cconcI9a.o: In function `_main': /tmp/cconcI9a.o(.text+0x18): undefined reference to `_unlink' /tmp/cconcI9a.o(.text+0x2c): undefined reference to `_socket' /tmp/cconcI9a.o(.text+0x74): undefined reference to `_bind' /tmp/cconcI9a.o(.text+0x84): undefined reference to `_listen' /tmp/cconcI9a.o(.text+0xb4): undef...
我写了一个hello world程序,我想用as,ld等命令来编译程序。 但在ld的时候,出现错误。错误如下: XXXXX:/opt/programtest/bintest$ ld -o bintest3 bintest.o ld: warning: cannot find entry symbol _start; defaulting to 0000000008048094 bintest.o(.text+0x56):bintest.s:42: undefined reference to `printf' bintest.o(.text+0x82):bintest.s:53: undefined reference to `printf' 操作步骤如下: $ gcc -S bintest.c $...
-r --relocateable Generate relocatable output---i.e., generate an output file that can in turn serve as input to ld. This is often called partial linking. As a side effect, in environments that support standard Unix magic numbers, this option also sets the output file's magic number to "OMAGIC". If this option is not spe...
ld -d -r a.o b.o c.o -o out.o可以成功连接。 可是我想用 gcc 做连接,该怎么加参数呢? 不会是这样吧: gcc -d -r a.o b.o c.o -o out.o