1
私はこのbigintライブラリを試しています:OSX Lionのhttps://mattmccutchen.net/bigint/。C++のBigIntライブラリの問題
自分のサイトの例を使って簡単なファイルを作成しようとしました。
#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
誰が間違っているものを私に言うことはできますか?
ヘッダーに沿ったライブラリはありますか?もしそうなら、あなたのビルドにインストールしてリンクしていますか? – jpm
私は前に外部ライブラリを使用していないので、あなたが何を話しているのかよく分かりません。 – cortex
これは役立つ場合のスクリーンショットです。 http://cl.ly/2K472I0i2k0h3w2I2d3E – cortex