我在c ++ Embarcadero中包含了Armadillo库,但是在尝试编译时,我在Mat_bones.hpp上收到以下错误消息:“ E2299无法从'mat_injector'生成模板特化”
我试图包含这些库,但包含却没有成功
'''c ++
#include <vcl.h>
#pragma hdrstop
#define ARMA_32BIT_WORD
#define ARMA_DONT_USE_WRAPPER
#define ARMA_USE_LAPACK
#define ARMA_USE_BLAS
#include <iostream>
#include <armadillo>
using namespace std;
using namespace arma;
#include "Unit1.h"
//-------------------------------------------------------------------- -------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::SpeedButton1Click(TObject *Sender)
{
mat A = randu<mat>(4,5);
mat B = randu<mat>(4,5);
cout << A*B.t() << endl;
}
//-------------------------------------------------------------
'''
错误消息:E2299无法从'mat_injector'生成模板专业化