C言語なら、俺に聞け! <29>
■ このスレッドは過去ログ倉庫に格納されています
006850
NGNG>gcc -c -lang-c sieve_c.c
gcc.exe: -lang-c: linker input file unused because linking not done
この段階でオブジェクトファイルはできていたので、ldを実行してみると、、
以下のようなエラーになります・・・
なんか、基本的な関数が呼び出せていない気がします・・・なぜだ??
>ld sieve_c.o
d:/djgpp/bin/ld.exe: warning: cannot find entry symbol start; defaulting to 000018d0
SIEVE_C.o(.text+0x56):SIEVE_C.C: undefined reference to `atol'
SIEVE_C.o(.text+0x72):SIEVE_C.C: undefined reference to `malloc'
SIEVE_C.o(.text+0x8b):SIEVE_C.C: undefined reference to `__dj_stderr'
SIEVE_C.o(.text+0x90):SIEVE_C.C: undefined reference to `fprintf'
SIEVE_C.o(.text+0x9d):SIEVE_C.C: undefined reference to `exit'
SIEVE_C.o(.text+0xf0):SIEVE_C.C: undefined reference to `printf'
SIEVE_C.o(.text+0x104):SIEVE_C.C: undefined reference to `putchar'
SIEVE_C.o(.text+0x11a):SIEVE_C.C: undefined reference to `printf'
SIEVE_C.o(.eh_frame+0x11):SIEVE_C.C: undefined reference to `__gxx_personality_v0'
■ このスレッドは過去ログ倉庫に格納されています