RE: Re: RE: lots of problems VC7.1
Bryan Leppard <[email protected]> Fri, 23 Jan 2004 19:55:52 -0700
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Message-ID | <000c01c3e225$9774d6f0$6501a8c0@PILOT2> |
The attached file goes in ITL-4.0.0-1\itl -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of mascix Sent: January 23, 2004 5:18 PM To: General Matrix Template Library (MTL) list Subject: MTL: Re: RE: lots of problems VC7.1 I guess I used that version anyway I downloaded that version of MTL and tried it again and there is no success. I have tried that MTL-2.1.2-21 but same problems again what should I do ? ----- Original Message ----- From: "Bryan Leppard" <[email protected]> To: "'General Matrix Template Library (MTL) list'" <[email protected]> Sent: Thursday, January 22, 2004 6:27 PM Subject: MTL: RE: lots of problems VC7.1 > Those error messages look a lot like what happens when you try to use MTL > version 2.1.2-20 with VC7.1 . Make sure you are using MTL version 2.1.2-21 > > I made a few modifications to the compiler specific setup code to get it to > work and posted it here. I think the changes are in the -21 version but let > me know if you continue to have problems. > > > Regards, > > Bryan Leppard > Neotechnology Consultants Ltd. > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of mascix > Sent: January 21, 2004 3:52 AM > To: [email protected] > Subject: MTL: lots of problems VC7.1 > > my name is özkan pakdil. I am developing http://s3dmesh.sf.net and tring to > make solver for FEM now. and MTL and ITL giving me hard time. I am using > VS7.1 and QT3.2.2 in win32 and these are the errors that I have from VS. > thanks. > > c:\Qt\3.2.2Educational\s3dmesh\mtl\light1D.h(87): error C2039: '_Ptrit' : is > not a member of 'std' > c:\Qt\3.2.2Educational\s3dmesh\mtl\light1D.h(87): error C2143: syntax error > : missing ';' before '<' > c:\Qt\3.2.2Educational\s3dmesh\mtl\light1D.h(87): error C2238: unexpected > token(s) preceding ';' > c:\Qt\3.2.2Educational\s3dmesh\mtl\light1D.h(88): error C2039: '_Ptrit' : is > not a member of 'std' > c:\Qt\3.2.2Educational\s3dmesh\mtl\light1D.h(88): error C2059: syntax error > : '<' > c:\Qt\3.2.2Educational\s3dmesh\mtl\light1D.h(88): error C2238: unexpected > token(s) preceding ';' > c:\Qt\3.2.2Educational\s3dmesh\mtl\light1D.h(90): error C2065: > 'ptr_iterator' : undeclared identifier > c:\Qt\3.2.2Educational\s3dmesh\mtl\light1D.h(92): error C2065: > 'ptr_const_iterator' : undeclared identifier > c:\Qt\3.2.2Educational\s3dmesh\mtl\light1D.h(102): error C3203: > 'dense_iterator' : class template invalid as template argument for template > parameter 'Iter', expected a real type > c:\Qt\3.2.2Educational\s3dmesh\mtl\light1D.h(104): error C3203: > 'dense_iterator' : class template invalid as template argument for template > parameter 'Iter', expected a real type > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(506): error C2039: 'value_type' : is not a member > of 'std::iterator_traits<int>' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(168) : see declaration of > 'std::iterator_traits<int>' > c:\Qt\3.2.2Educational\s3dmesh\mtl\reverse_iter.h(39) : see > reference to class template instantiation 'std::reverse_iterator<_RanIt>' > being compiled > with > [ > _RanIt=int > ] > c:\Qt\3.2.2Educational\s3dmesh\mtl\light1D.h(148) : see reference to > class template instantiation 'mtl::reverse_iter<Iter>' being compiled > with > [ > Iter=int > ] > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(506): error C2146: syntax error : missing ',' > before identifier 'value_type' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(506): error C2065: 'value_type' : undeclared > identifier > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(507): error C2039: 'difference_type' : is not a > member of 'std::iterator_traits<int>' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(168) : see declaration of > 'std::iterator_traits<int>' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(507): error C2146: syntax error : missing ',' > before identifier 'difference_type' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(507): error C2065: 'difference_type' : undeclared > identifier > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(508): error C2039: 'pointer' : is not a member of > 'std::iterator_traits<int>' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(508): error C2146: syntax error : missing ',' > before identifier 'pointer' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(508): error C2065: 'pointer' : undeclared > identifier > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(509): error C2039: 'reference' : is not a member > of 'std::iterator_traits<int>' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(168) : see declaration of > 'std::iterator_traits<int>' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(509): error C2146: syntax error : missing ',' > before identifier 'reference' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(509): error C2065: 'reference' : undeclared > identifier > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(509): error C2976: 'std::iterator' : too few > template arguments > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(66) : see declaration of 'std::iterator' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(513): error C2039: 'difference_type' : is not a > member of 'std::iterator_traits<int>' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(168) : see declaration of > 'std::iterator_traits<int>' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(514): error C2039: 'pointer' : is not a member of > 'std::iterator_traits<int>' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(168) : see declaration of > 'std::iterator_traits<int>' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(515): error C2039: 'reference' : is not a member > of 'std::iterator_traits<int>' > C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\include\xutility(168) : see declaration of > 'std::iterator_traits<int>' > c:\Qt\3.2.2Educational\s3dmesh\mtl\linalg_vec.h(415): error C2039: '_Ptrit' > : is not a member of 'std' > c:\Qt\3.2.2Educational\s3dmesh\mtl\linalg_vec.h(415): error C2143: syntax > error : missing ';' before '<' > c:\Qt\3.2.2Educational\s3dmesh\mtl\linalg_vec.h(415): error C2238: > unexpected token(s) preceding ';' > c:\Qt\3.2.2Educational\s3dmesh\mtl\linalg_vec.h(416): error C2039: '_Ptrit' > : is not a member of 'std' > c:\Qt\3.2.2Educational\s3dmesh\mtl\linalg_vec.h(416): error C2059: syntax > error : '<' > c:\Qt\3.2.2Educational\s3dmesh\mtl\linalg_vec.h(416): error C2238: > unexpected token(s) preceding ';' > c:\Qt\3.2.2Educational\s3dmesh\mtl\linalg_vec.h(418): error C3861: > 'ptr_iterator': identifier not found, even with argument-dependent lookup > c:\Qt\3.2.2Educational\s3dmesh\mtl\linalg_vec.h(419): error C3861: > 'ptr_const_iterator': identifier not found, even with argument-dependent > lookup > c:\Qt\3.2.2Educational\s3dmesh\mtl\linalg_vec.h(428): error C3203: > 'dense_iterator' : class template invalid as template argument for template > parameter 'Iter', expected a real type > c:\Qt\3.2.2Educational\s3dmesh\mtl\linalg_vec.h(430): error C3203: > 'dense_iterator' : class template invalid as template argument for template > parameter 'Iter', expected a real type > c:\Qt\3.2.2Educational\s3dmesh\mtl\light_matrix.h(128): warning C4346: > 'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::value_type' : dependent > name is not a type > c:\Qt\3.2.2Educational\s3dmesh\mtl\light_matrix.h(128): error C2146: syntax > error : missing ';' before identifier 'value_type' > c:\Qt\3.2.2Educational\s3dmesh\mtl\light_matrix.h(128): error C2838: > 'value_type' : illegal qualified name in member declaration > c:\Qt\3.2.2Educational\s3dmesh\mtl\light_matrix.h(128): error C2208: 'T1' : > no members defined using this type > c:\Qt\3.2.2Educational\s3dmesh\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:\Qt\3.2.2Educational\s3dmesh\mtl\light_matrix.h(130): error C2146: syntax > error : missing ';' before identifier 'size_type' > c:\Qt\3.2.2Educational\s3dmesh\mtl\light_matrix.h(130): error C2838: > 'size_type' : illegal qualified name in member declaration > c:\Qt\3.2.2Educational\s3dmesh\mtl\light_matrix.h(130): error C2208: 'T2' : > no members defined using this type > c:\Qt\3.2.2Educational\s3dmesh\mtl\dense2D.h(200): error C2065: 'x' : > undeclared identifier > c:\Qt\3.2.2Educational\s3dmesh\mtl\dense2D.h(201): error C2433: > 'mtl::rect_offset<size_t,MM,NN>::__ctor' : 'inline' not permitted on data > declarations > c:\Qt\3.2.2Educational\s3dmesh\mtl\dense2D.h(201): warning C4346: > 'mtl::rect_offset<size_t,MM,NN>::transpose_type' : dependent name is not a > type > prefix with 'typename' to indicate a type > c:\Qt\3.2.2Educational\s3dmesh\mtl\dense2D.h(201): error C2350: > 'mtl::rect_offset<size_t,MM,NN>::__ctor' is not a static member > c:\Qt\3.2.2Educational\s3dmesh\mtl\dense2D.h(199): error C3856: > 'mtl::rect_offset<size_t,MM,NN>::__ctor': class is not a class template > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(751): warning C4003: not enough > actual parameters for macro 'max' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(751): error C2226: syntax error : > unexpected type 'VectorT' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(751): error C2988: unrecognizable > template declaration/definition > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(751): error C2059: syntax error : > ')' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(751): error C2059: syntax error : > ')' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(765): error C2653: 'VectorT' : is > not a class or namespace name > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(766): warning C4003: not enough > actual parameters for macro 'min' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(766): error C2988: unrecognizable > template declaration/definition > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(766): error C2059: syntax error : > ')' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(766): error C2059: syntax error : > ')' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(767): error C2143: syntax error : > missing ';' before '{' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(767): error C2447: '{' : missing > function header (old-style formal list?) > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1046): error C2906: > 'mtl::givens_rotation<std::complex<double>>' : explicit specialization > requires 'template <>' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1051): error C3861: 'cs': > identifier not found, even with argument-dependent lookup > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1051): error C2433: > 'mtl::givens_rotation<std::complex<double>>::__ctor' : 'inline' not > permitted on data declarations > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1051): error C2461: > 'mtl::givens_rotation<std::complex<double>>' : constructor syntax missing > formal parameters > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1051): error C2059: syntax error : > 'constant' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1055): error C2143: syntax error : > missing ';' before '{' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1055): error C2334: unexpected > token(s) preceding '{'; skipping apparent function body > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1056): error C2059: syntax error : > 'return' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1056): error C2238: unexpected > token(s) preceding ';' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1057): error C2146: syntax error : > missing ';' before identifier 'abs1' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1057): error C2065: 'C' : > undeclared identifier > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1057): error C2146: syntax error : > missing ')' before identifier 't' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1057): error C2501: 'abs1' : > missing storage-class or type specifiers > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1057): error C2059: syntax error : > ')' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1057): error C2143: syntax error : > missing ';' before '{' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1057): error C2447: '{' : missing > function header (old-style formal list?) > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1060): error C2955: > 'mtl::givens_rotation' : use of class template requires template argument > list > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(917) : see declaration of > 'mtl::givens_rotation' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1060): error C2146: syntax error : > missing ')' before identifier 'a_in' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1060): error C2146: syntax error : > missing ';' before identifier 'a_in' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1060): error C2146: syntax error : > missing ';' before identifier 'b_in' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1060): error C2059: syntax error : > ')' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1060): error C2470: 'b_in' : looks > like a function definition, but there is no formal parameter list; skipping > apparent body > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1134): error C3861: 'C': identifier > not found, even with argument-dependent lookup > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1134): error C3861: 'x': identifier > not found, even with argument-dependent lookup > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1134): error C2065: 'y' : > undeclared identifier > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1134): error C3861: 'C': identifier > not found, even with argument-dependent lookup > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1134): error C2448: 'scalar_apply' > : function-style initializer appears to be a function definition > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1139): error C2146: syntax error : > missing ';' before identifier 'c' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1139): error C2501: 'T' : missing > storage-class or type specifiers > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1139): error C3861: 'cs': > identifier not found, even with argument-dependent lookup > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1140): error C2146: syntax error : > missing ';' before identifier 's' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1140): error C2501: 'C' : missing > storage-class or type specifiers > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1140): error C2065: 'sn' : > undeclared identifier > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1144): error C2059: syntax error : > 'protected' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1145): error C2146: syntax error : > missing ';' before identifier 'cs' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1145): error C2501: 'T' : missing > storage-class or type specifiers > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1145): error C2086: 'int std::T' : > redefinition > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1139) : see declaration of > 'std::T' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1145): error C2501: 'cs' : missing > storage-class or type specifiers > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1146): error C2146: syntax error : > missing ';' before identifier 'sn' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1146): error C2501: 'C' : missing > storage-class or type specifiers > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1146): error C2086: 'int std::C' : > redefinition > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1140) : see declaration of > 'std::C' > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1146): error C2501: 'sn' : missing > storage-class or type specifiers > c:\Qt\3.2.2Educational\s3dmesh\mtl\mtl.h(1150): fatal error C1506: > unrecoverable block scoping error > _______________________________________________ > This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/ > > > > > _______________________________________________ > This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/ > _______________________________________________ This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/ _______________________________________________ This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
itl_config.h
(text/plain, 1.4 KB)
/* itl/itl_config.h. Generated automatically by configure. */
/* itl/itl_config.h.in. Generated automatically from configure.in by autoheader. */
#ifndef ITL_CONFIG_H
#define ITL_CONFIG_H
#define ITL_NO_SSTREAM
/* #undef ITL_NO_STD_ABS */
#define ITL_NO_STD_SQRT
#define ITL_NO_LIMITS 1
#define ITL_HAVE_CMATH 1
#if defined(_MSC_VER) && !defined(__MWERKS__)
# if ( _MSC_VER < 1300 )
# define _MSVCPP_ _MSC_VER
# elif( _MSC_VER < 1310 )
# define _MSVCPP7_ _MSC_VER
# else
# define _MSVCPP71_ _MSC_VER
# endif
#endif
#if defined(__sgi) && !defined(__GNUC__) && (_COMPILER_VERSION < 730)
# define ITL_NO_TEMPLATE
#elif defined(__GNUC__) && (__GNUC__ < 9)
# define ITL_NO_TEMPLATE
#elif defined(__KCC_VERSION) && (__KCC_VERSION < 3400)
# define ITL_NO_TEMPLATE
#elif defined(__MWERKS__)
# define ITL_NO_TEMPLATE
#endif
# ifndef __STL_DEFAULT_ALLOCATOR
# ifdef __STL_USE_OLD_SGI_ALLOCATOR
# define __STL_DEFAULT_ALLOCATOR(T) alloc
# else
# define __STL_DEFAULT_ALLOCATOR(T) allocator< T >
# endif
# endif
#if defined( _MSVCPP_ ) || defined( _MSVCPP7_ )
#define ITL_PARTIAL_SPEC 0
#else
#define ITL_PARTIAL_SPEC 1
#endif
#ifdef ITL_NO_TEMPLATE
#define ITL_TEMPLATE
#else
#define ITL_TEMPLATE template
#endif
#ifdef ITL_HAVE_CMATH
#include <cmath>
#endif
#ifdef ITL_NO_STD_SQRT
#include <math.h>
namespace std {
using ::sqrt;
}
#endif
#endif /* ITL_CONFIG_H */