1
그래서이 bigint 라이브러리를 사용해 보겠습니다 : OSX Lion에서 https://mattmccutchen.net/bigint/.C++에서 BigInt 라이브러리 문제
사이트에서 예제를 사용하여 간단한 파일을 만들려고했습니다. 내가 TextMate를이를 컴파일 할 때
#include <iostream>
#include <bigint/BigIntegerLibrary.hh>
using namespace std;
int main(){
BigInteger a;
int b=5;
a=b;
cout<<a;
return 0;
}
, 출력은 다음과 같습니다
Undefined symbols for architecture x86_64:
"BigInteger::BigInteger(int)", referenced from:
_main in ccl9yNN5.o
"BigInteger::operator=(BigInteger const&)", referenced from:
_main in ccl9yNN5.o
"operator<<(std::basic_ostream<char, std::char_traits<char> >&, BigInteger const&)", referenced from:
_main in ccl9yNN5.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
누구 잘못 무엇인지 말씀해 주시겠습니까?
헤더와 함께가는 라이브러리가 있습니까? 그렇다면 빌드하고 설치 했습니까? – jpm
전 외부 라이브러리를 사용하지 않았기 때문에 어떤 내용인지 확실하지 않습니다 ... – cortex
도움이 될 경우 스크린 샷입니다. http://cl.ly/2K472I0i2k0h3w2I2d3E – cortex