1

最小限のアルマジロのサンプルプログラムを実行しようとしています(便宜上、以下を参照)

#include <iostream>
#include <armadillo>

using namespace std;
using namespace arma;

int main()
  {
  mat A = randu<mat>(4,5);
  mat B = randu<mat>(4,5);
  cout << A*B.t() << endl; 
  return 0;
  }

Linux fedora 23 ディストリビューションを実行しており、armadilloパッケージがインストールされています。

$ sudo dnf list armadillo
Last metadata expiration check: 1:04:12 ago on Tue May 31 17:57:36 2016.
Installed Packages
armadillo.x86_64        6.700.6-1.fc23         @updates
Available Packages
armadillo.i686          6.700.6-1.fc23         updates 

現在のディレクトリからサンプルプログラムをコンパイルすると、次のようになります。

$ g++ example.cpp -o example -O2 -larmadillo
example.cpp:2:21: fatal error: armadillo: No such file or directory
compilation terminated.
4

1 に答える 1