b***y 发帖数: 2799 | 1 ☆─────────────────────────────────────☆
Viterbi (长岛扛霸的) 于 (Tue Sep 6 18:06:05 2005) 提到:
I'm using C under Linux for the first time. I found something strange. When I
try to use gcc to link (no problem for compile), it gives me the following
error message:
prime_para.o(.text+0xd0): In function `main':
collect2: ld returned 1 exit status
but if I use g++ instead, such problem disappeared.
Then I go on and use some other function, now both gcc and g++ fail, anybody
know why? Thanks a lot!
☆── |
|