RE: VC++ .Net Compilation of MTL fails
Janusz opechowski <[email protected]>
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Message-ID | <[email protected]> |
Yes . Try typing : std::_Ptrit moreover you should be able to find more : std::_Ptrit::_Ptrit::_Ptrit :) but not: _ptr .. So this is some kind of basic pointer.-> Msoft could not change it , aldough check it,in manual, if neccessary try use STL provided by SGI : Reference : http://www.sgi.com/tech/stl/stl_index_cat.html I am sorry, I cannot give direct answer. Janusz --- Manash Sahoo <[email protected]> wrote: > Janusz, > > Thanks for the header file...makes it nice and > simple. However, I am > still getting the error. > > I am using VS.Net 2003 > > I think it may be due to how I have my includes > search directory setup. > Is there a new implementation of the std library in > vs.net that is > overriding, perhaps a previous implementation that > has the function > _ptrit? > > Do you have a definition for this function in > stdlib? > > Thanks again! > > Manash Sahoo > HealthEvolutions > 9000 Keystone Crossing Blvd, Suite 200 > Indianapolis, IN 46240 > 317-815-0801 ext 146 > [email protected] > > > -----Original Message----- > From: Janusz opechowski > [mailto:[email protected]] > Sent: Monday, August 25, 2003 11:12 PM > To: General Matrix Template Library (MTL) list > Subject: Re: MTL: VC++ .Net Compilation of MTL fails > > Hi. > > Your code compiles without problems. > (VC.NET 2002) > > I just modified slightly your > program ( namespace calls and includes deleted ) > into > > the one below. > > Included file is mine "universal file", > in attachement. > > It might be you didn't resolved "includes" part > fully. > Check it. > > > #include"DataTypes.h" > > int main() > > { > > > > //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 mtl::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 mtl::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 <[email protected]> > wrote: > > > > > > 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] > === message truncated === __________________________________________________ Yahoo! Plus For a better Internet experience http://www.yahoo.co.uk/btoffer _______________________________________________ This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/