我正在尝试运行最小的犰狳示例程序(为了方便起见)
#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.