VC++ .Net Compilation of MTL fails
"Manash Sahoo" <[email protected]>
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Message-ID | <[email protected]> |
I keep getting an error when compiling the following example from within
MS VC++ 7 .Net version. Any help is appreciated, thanks in advance!
c:\Program Files\MTL\mtl-2.1.2-21\mtl\light1D.h(87): error C2039:
'_Ptrit' : is not a member of 'std'
Here's the sample program I am trying to run:
using namespace std;
#include "stdafx.h"
#include <mtl/matrix.h>
#include <mtl/utils.h>
int main()
{
using namespace mtl;
using namespace std;
//begin
// [1,0,2]
// [0,3,0]
// [0,4,5]
const int m = 3, n = 3, nnz = 5;
double values[] = { 1, 2, 3, 4, 5 };
int indices[] = { 1, 3, 2, 2, 3 };
int row_ptr[] = { 1, 3, 4, 6 };
// Create from pre-existing arrays
typedef matrix<double,
rectangle<>,
compressed<int, external,
index_from_one>,
row_major>::type MatA;
MatA A(m, n, nnz, values, row_ptr, indices);
//end
cout << "matrix A" << endl;
print_all_matrix(A);
//begin
// Create from scratch
typedef matrix<double,
rectangle<>,
compressed<>,
row_major >::type MatB;
MatB B(m, n);
B(0,0) = 1; B(0,2) = 2;
B(1,1) = 3;
B(2,1) = 4; B(2,2) = 5;
//end
cout << "matrix B" << endl;
print_all_matrix(B);
return 0;
}
Manash Sahoo
HealthEvolutions
9000 Keystone Crossing Blvd, Suite 200
Indianapolis, IN 46240
317-815-0801 ext 146
[email protected]
_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/