/tmp/cceN58Hg.o(.text+0x6a)

c1soju의 이미지

/tmp/cceN58Hg.o(.text+0x6a): In function `main':
: undefined reference to `fsanf'
collect2: ld returned 1 exit status
gcc 컴파일 할때 이런 에러가나오는 이유좀 알려주세요.

neomark의 이미지

undefined reference인걸 보니 fsanf란 함수를 못찾는군요

fscanf의 오타가 아닐런지...

Munsen의 이미지

include 안 한게 아닐까요

fscanf가 stdio.h에 있는걸로 아는데요.

ohhara의 이미지

fsanf가 정의되어 있지 않다는 뜻입니다. fsanf가 무엇인지는 잘 모르겠지만 소스 적당한 곳에 int fsanf; 처럼 fsanf를 정의해 주면 link error가 발생하지 않을 겁니다.

Taeho Oh ( ohhara@postech.edu , ohhara@plus.or.kr ) http://ohhara.sarang.net
Postech ( Pohang University of Science and Technology ) http://www.postech.edu
Digital Media Professionals Inc. http://www.dmprof.com

Taeho Oh ( ohhara@postech.edu ) http://ohhara.sarang.net
Postech ( Pohang University of Science and Technology ) http://www.postech.edu
Alticast Corp. http://www.alticast.com