/tmp/cceN58Hg.o(.text+0x6a): In function `main': : undefined reference to `fsanf' collect2: ld returned 1 exit status gcc 컴파일 할때 이런 에러가나오는 이유좀 알려주세요.
undefined reference인걸 보니 fsanf란 함수를 못찾는군요
fscanf의 오타가 아닐런지...
include 안 한게 아닐까요
fscanf가 stdio.h에 있는걸로 아는데요.
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
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
흠..
undefined reference인걸 보니 fsanf란 함수를 못찾는군요
fscanf의 오타가 아닐런지...
stdio.h
include 안 한게 아닐까요
fscanf가 stdio.h에 있는걸로 아는데요.
fsanf가 정의되어 있지
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
댓글 달기