>> Delete No. 32020 article
No. [질문]gcc컴파일때 에러가 납니다. #include
<math.h>가 안되요

등록 2001-06-02 00:01:00 By localhost     조회 2
이름 사미    

		gcc 컴파일 할때 에러가 나네요.
 /tmp/ccem3hGo.o: In function 'main':
/tmp/ccem3hGo.o(.text+0x37): undefined refence to 'exp'
collect2: ld returned 1 exit status
 이렇게 에러가 나고요
 소스는
 #include <stdio.h>
#include <math.h>
 int main (void)
{
	double x=1.27;
	printf("$f", exp(x));
	return 0;
}
 입니다. 왜 exp()함수를 쓸 수 없을까요?
 그리고 gcc 버젼은 2.96입니다.--부탁드립니다.
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved