所以我正在尝试这个 bigint 库:https ://mattmccutchen.net/bigint/ on OSX Lion。
我尝试使用他们网站上的示例制作一个简单的文件。
#include <iostream>
#include <bigint/BigIntegerLibrary.hh>
using namespace std;
int main(){
BigInteger a;
int b=5;
a=b;
cout<<a;
return 0;
}
当我在 textmate 中编译它时,输出是:
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
谁能告诉我出了什么问题?