1

だから私はこの bigint ライブラリを試しています: https://mattmccutchen.net/bigint/ 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

誰が何が悪いのか教えてもらえますか?

4

1 に答える 1