• Advertisement
Sign in to follow this  

how can i install MTL on VC 7 ?

This topic is 4617 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

here is all the questin .. i downloaded the version -21 ( for VC7 , and its giving me a hard times , many and many errors when i include some files ) here is all the crap if you got any idea ...
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\dense2D.h(200): error C2065: 'x' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\dense2D.h(200): error C2065: 'x' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\dense2D.h(201): error C2350: 'mtl::rect_offset<size_t,MM,NN>::__ctor' is not a static member
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\dense2D.h(201): error C2350: 'mtl::rect_offset<size_t,MM,NN>::__ctor' is not a static member
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\dense2D.h(201): error C2433: 'mtl::rect_offset<size_t,MM,NN>::__ctor' : 'inline' not permitted on data declarations
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\dense2D.h(201): error C2433: 'mtl::rect_offset<size_t,MM,NN>::__ctor' : 'inline' not permitted on data declarations
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\dense2D.h(201): warning C4346: 'mtl::rect_offset<size_t,MM,NN>::transpose_type' : dependent name is not a type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\dense2D.h(201): warning C4346: 'mtl::rect_offset<size_t,MM,NN>::transpose_type' : dependent name is not a type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(128): error C2146: syntax error : missing ';' before identifier 'value_type'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(128): error C2146: syntax error : missing ';' before identifier 'value_type'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(128): error C2208: 'T1' : no members defined using this type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(128): error C2208: 'T1' : no members defined using this type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(128): error C2838: 'value_type' : illegal qualified name in member declaration
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(128): error C2838: 'value_type' : illegal qualified name in member declaration
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(128): warning C4346: 'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::value_type' : dependent name is not a type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(128): warning C4346: 'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::value_type' : dependent name is not a type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(130): error C2146: syntax error : missing ';' before identifier 'size_type'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(130): error C2146: syntax error : missing ';' before identifier 'size_type'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(130): error C2208: 'T2' : no members defined using this type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(130): error C2208: 'T2' : no members defined using this type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(130): error C2838: 'size_type' : illegal qualified name in member declaration
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(130): error C2838: 'size_type' : illegal qualified name in member declaration
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(130): warning C4346: 'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::size_type' : dependent name is not a type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light_matrix.h(130): warning C4346: 'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::size_type' : dependent name is not a type
        prefix with 'typename' to indicate a type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(87): error C2039: '_Ptrit' : is not a member of 'std'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(87): error C2039: '_Ptrit' : is not a member of 'std'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(87): error C2143: syntax error : missing ';' before '<'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(87): error C2143: syntax error : missing ';' before '<'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(87): error C2238: unexpected token(s) preceding ';'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(87): error C2238: unexpected token(s) preceding ';'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(88): error C2039: '_Ptrit' : is not a member of 'std'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(88): error C2039: '_Ptrit' : is not a member of 'std'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(88): error C2059: syntax error : '<'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(88): error C2059: syntax error : '<'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(88): error C2238: unexpected token(s) preceding ';'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(88): error C2238: unexpected token(s) preceding ';'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(90): error C2065: 'ptr_iterator' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(90): error C2065: 'ptr_iterator' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(92): error C2065: 'ptr_const_iterator' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(92): error C2065: 'ptr_const_iterator' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(102): error C3203: 'dense_iterator' : class template invalid as template argument for template parameter 'Iter', expected a real type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(102): error C3203: 'dense_iterator' : class template invalid as template argument for template parameter 'Iter', expected a real type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(104): error C3203: 'dense_iterator' : class template invalid as template argument for template parameter 'Iter', expected a real type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(104): error C3203: 'dense_iterator' : class template invalid as template argument for template parameter 'Iter', expected a real type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(415): error C2039: '_Ptrit' : is not a member of 'std'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(415): error C2039: '_Ptrit' : is not a member of 'std'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(415): error C2143: syntax error : missing ';' before '<'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(415): error C2143: syntax error : missing ';' before '<'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(415): error C2238: unexpected token(s) preceding ';'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(415): error C2238: unexpected token(s) preceding ';'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(416): error C2039: '_Ptrit' : is not a member of 'std'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(416): error C2039: '_Ptrit' : is not a member of 'std'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(416): error C2059: syntax error : '<'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(416): error C2059: syntax error : '<'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(416): error C2238: unexpected token(s) preceding ';'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(416): error C2238: unexpected token(s) preceding ';'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(418): error C3861: 'ptr_iterator': identifier not found, even with argument-dependent lookup
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(418): error C3861: 'ptr_iterator': identifier not found, even with argument-dependent lookup
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(419): error C3861: 'ptr_const_iterator': identifier not found, even with argument-dependent lookup
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(419): error C3861: 'ptr_const_iterator': identifier not found, even with argument-dependent lookup
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(428): error C3203: 'dense_iterator' : class template invalid as template argument for template parameter 'Iter', expected a real type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(428): error C3203: 'dense_iterator' : class template invalid as template argument for template parameter 'Iter', expected a real type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(430): error C3203: 'dense_iterator' : class template invalid as template argument for template parameter 'Iter', expected a real type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\linalg_vec.h(430): error C3203: 'dense_iterator' : class template invalid as template argument for template parameter 'Iter', expected a real type
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\mtl.h(1046): error C2906: 'mtl::givens_rotation<std::complex<double>>' : explicit specialization requires 'template <>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\mtl.h(1046): error C2906: 'mtl::givens_rotation<std::complex<double>>' : explicit specialization requires 'template <>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\mtl.h(1155): error C2906: 'mtl::givens_rotation<std::complex<float>>' : explicit specialization requires 'template <>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\mtl.h(1155): error C2906: 'mtl::givens_rotation<std::complex<float>>' : explicit specialization requires 'template <>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\utils.h(477): warning C4244: 'return' : conversion from 'double' to 'float', possible loss of data
c:\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\utils.h(477): warning C4244: 'return' : conversion from 'double' to 'float', possible loss of data
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(506): error C2039: 'value_type' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(506): error C2039: 'value_type' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(506): error C2065: 'value_type' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(506): error C2065: 'value_type' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(506): error C2146: syntax error : missing ',' before identifier 'value_type'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(506): error C2146: syntax error : missing ',' before identifier 'value_type'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(507): error C2039: 'difference_type' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(507): error C2039: 'difference_type' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(507): error C2065: 'difference_type' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(507): error C2065: 'difference_type' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(507): error C2146: syntax error : missing ',' before identifier 'difference_type'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(507): error C2146: syntax error : missing ',' before identifier 'difference_type'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(508): error C2039: 'pointer' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(508): error C2039: 'pointer' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(508): error C2065: 'pointer' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(508): error C2065: 'pointer' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(508): error C2146: syntax error : missing ',' before identifier 'pointer'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(508): error C2146: syntax error : missing ',' before identifier 'pointer'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(509): error C2039: 'reference' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(509): error C2039: 'reference' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(509): error C2065: 'reference' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(509): error C2065: 'reference' : undeclared identifier
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(509): error C2146: syntax error : missing ',' before identifier 'reference'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(509): error C2146: syntax error : missing ',' before identifier 'reference'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(509): error C2976: 'std::iterator' : too few template arguments
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(509): error C2976: 'std::iterator' : too few template arguments
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(513): error C2039: 'difference_type' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(513): error C2039: 'difference_type' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(514): error C2039: 'pointer' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(514): error C2039: 'pointer' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(515): error C2039: 'reference' : is not a member of 'std::iterator_traits<int>'
c:\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(515): error C2039: 'reference' : is not a member of 'std::iterator_traits<int>'

Share this post


Link to post
Share on other sites
Advertisement
What header are you including?

Come up with a simple example which reproduces the error and post it here.

eg.


#include "whatever_the_mtl_header_is_called.h"
int main() {
return 0;
}



Just a hint. The first error is the important one. All subsequent errors shouldn't be taken seriously until previous ones have been dealt with.

Share this post


Link to post
Share on other sites
i just included mtl_matrix.h ; i also try to add mtl_math.h ...just bringing more error t.T

but nvm, i just wrote my own LU solver ... it was faster than loosing time at searching why all those stupid lib doesnt wana work with me :D

thx anyway

Share this post


Link to post
Share on other sites
So you're saying that something as simple as the following won't even compile?


#include <mtl/matrix.h>
int main() {
return 0;
}





I'm sure the developers would have noticed something as simple as this. It's most likely something you're doing wrong.

edit: sorry, I see you've got version 21

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement