MTL and Visual Studio 2008 (Express Edition)

"Anthony Lock" <[email protected]> Sat, 3 Jan 2009 11:05:26 +0000
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
--===============0955438181==
Content-Type: multipart/alternative; 
	boundary="----=_Part_177722_11364043.1230980727029"

------=_Part_177722_11364043.1230980727029
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi
I am currently trying to move some C++ code from Linux to Windows; the code
uses MTL for all of the linear algebra.  As a first test, I have tried to
use MS Visual Studio 2008 (express edition) to run the simple example given
at:

http://www.osl.iu.edu/research/mtl/examples/euclid_norm.cc

However, I end up with 54 error messages and 11 warnings, all of which seem
to stem from the header file 'light_matrix.h'.  Please find below the test,
together with the error messages.

Any help would be appreciated,
Anthony.



****************************
test
****************************
// 02Jan09
// Taken from: http://www.osl.iu.edu/research/mtl/examples/euclid_norm.cc

// -*- c++ -*-
//
// $COPYRIGHT$
//
//===========================================================================

/*
#include "mtl/mtl.h"
#include "mtl/utils.h"
#include "mtl/linalg_vec.h"
*/

#include <mtl/mtl.h>
#include <mtl/utils.h>
#include <mtl/linalg_vec.h>

/*
  Sample output;

X: [1,5,3,1,]
The L-2 norm of X is 6
 */

using namespace mtl;
using namespace std;

typedef external_vec<double> Vec;

int
main()
{
  double data[] = {1,5,3,1};
  Vec x(data, 4);

  double s = two_norm(x);

  cout << "X: ";
  print_vector(x);

  cout << "The L-2 norm of X is " << s << endl;

  return 0;
}



****************************
error messages
****************************

Compiling...
euclid_norm.cpp
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(128) : warning C4346:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::value_type' : dependent
name is not a type
        prefix with 'typename' to indicate a type
        c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(177) : see reference to class
template instantiation
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::__iterator<isConst>'
being compiled
        c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(106) : see reference to class
template instantiation 'mtl::light_matrix<T,SizeType,Orien,Strided>::oned'
being compiled
        c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(414) : see reference to class
template instantiation 'mtl::light_matrix<T,SizeType,Orien,Strided>' being
compiled
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(128) : error C2144: syntax error :
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::value_type' should be
preceded by ';'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(128) : error C2208: 'T' : no members
defined using this type
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(129) : warning C4346:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::pointer' : dependent
name is not a type
        prefix with 'typename' to indicate a type
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(129) : error C2144: syntax error :
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::pointer' should be
preceded by ';'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(129) : error C2602:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::pointer' is not a member
of a base class of
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::__iterator<isConst>'
        c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(111) : see declaration of
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::pointer'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(129) : error C2868:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::pointer' : illegal
syntax for using-declaration; expected qualified-name
c:\program files\matrix template
library\mtl-2.1.2-21\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:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(130) : error C2144: syntax error :
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::size_type' should be
preceded by ';'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(130) : error C2208: 'SizeType' : no
members defined using this type
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(131) : warning C4346:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::difference_type' :
dependent name is not a type
        prefix with 'typename' to indicate a type
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(131) : error C2144: syntax error :
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::difference_type' should
be preceded by ';'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(131) : error C2602:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::difference_type' is not
a member of a base class of
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::__iterator<isConst>'
        c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(113) : see declaration of
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::difference_type'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(131) : error C2868:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::difference_type' :
illegal syntax for using-declaration; expected qualified-name
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(133) : warning C4346:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::const_reference' :
dependent name is not a type
        prefix with 'typename' to indicate a type
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(133) : error C2923: 'mtl::IF' :
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::const_reference' is not
a valid template type argument for parameter 'A'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(133) : warning C4346:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::reference' : dependent
name is not a type
        prefix with 'typename' to indicate a type
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(133) : error C2923: 'mtl::IF' :
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::reference' is not a
valid template type argument for parameter 'B'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(133) : error C2146: syntax error :
missing ';' before identifier 'reference'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(133) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(133) : error C2602:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::reference' is not a
member of a base class of
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::__iterator<isConst>'
        c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(108) : see declaration of
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::reference'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(133) : error C2868:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::reference' : illegal
syntax for using-declaration; expected qualified-name
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(137) : error C2061: syntax error :
identifier 'size_type'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(154) : error C2061: syntax error :
identifier 'size_type'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(154) : error C2805: binary 'operator
+=' has too few parameters
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(154) : error C2333:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::__iterator<isConst>::operator
+=' : error in function declaration; skipping function body
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(159) : error C2061: syntax error :
identifier 'size_type'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(159) : error C2805: binary 'operator
-=' has too few parameters
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(159) : error C2333:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::__iterator<isConst>::operator
-=' : error in function declaration; skipping function body
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(165) : error C2146: syntax error :
missing ';' before identifier 'index'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(165) : error C2433:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::__iterator<isConst>::size_type'
: 'inline' not permitted on data declarations
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(165) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(165) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(165) : warning C4183: 'index':
missing return type; assumed to be a member function returning 'int'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(167) : error C2143: syntax error :
missing ';' before '&'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(167) : error C2433:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::__iterator<isConst>::size_type'
: 'inline' not permitted on data declarations
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(167) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(167) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(167) : warning C4183: 'pos': missing
return type; assumed to be a member function returning 'int'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(168) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(168) : error C2143: syntax error :
missing ';' before '&'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(168) : error C2433:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::__iterator<isConst>::size_type'
: 'inline' not permitted on data declarations
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(168) : error C2086:
'oned::oned::size_type size_type' : redefinition
        c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(130) : see declaration of
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::__iterator<isConst>::operator
size_type'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(168) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(168) : warning C4183: 'pos': missing
return type; assumed to be a member function returning 'int'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(170) : error C2146: syntax error :
missing ';' before identifier 'row'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(170) : error C2433:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::__iterator<isConst>::size_type'
: 'inline' not permitted on data declarations
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(170) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(170) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(170) : warning C4183: 'row': missing
return type; assumed to be a member function returning 'int'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(171) : error C2146: syntax error :
missing ';' before identifier 'column'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(171) : error C2433:
'mtl::light_matrix<T,SizeType,Orien,Strided>::oned::__iterator<isConst>::size_type'
: 'inline' not permitted on data declarations
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(171) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(171) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(171) : warning C4183: 'column':
missing return type; assumed to be a member function returning 'int'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(174) : error C2146: syntax error :
missing ';' before identifier 'i'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(174) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(174) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(174) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(175) : error C2146: syntax error :
missing ';' before identifier 'offset'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(175) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(175) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(176) : error C2146: syntax error :
missing ';' before identifier 'stride'
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(176) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\program files\matrix template
library\mtl-2.1.2-21\mtl\light_matrix.h(176) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
Build log was saved at "file://c:\Documents and Settings\Anthony\My
Documents\Visual Studio 2008\Projects\MTL_Test\MTL_Test\Debug\BuildLog.htm"
MTL_Test - 54 error(s), 11 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

------=_Part_177722_11364043.1230980727029
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<span class="Apple-style-span" style="border-collapse: collapse; ">Hi<div><br></div><div>I am currently trying to move some C++ code from Linux to Windows; the code uses MTL for all of the linear algebra. &nbsp;As a first test, I have tried to use MS Visual Studio 2008 (express edition) to run the simple example given at:</div>
<div><br></div><div><a href="http://www.osl.iu.edu/research/mtl/examples/euclid_norm.cc" target="_blank" style="color: rgb(66, 99, 171); ">http://www.osl.iu.edu/research/mtl/examples/euclid_norm.cc</a><br></div><div><br></div>
<div>However, I end up with 54 error messages and 11 warnings, all of which seem to stem from the header file &#39;light_matrix.h&#39;. &nbsp;Please find below the test, together with the error messages. &nbsp;</div><div><br></div>
<div>Any help would be appreciated,</div><div>Anthony.</div><div><br></div><div><br></div><div><br></div><div>****************************</div><div>test</div>****************************<div><br><div><div>// 02Jan09</div>
<div>// Taken from:&nbsp;<a href="http://www.osl.iu.edu/research/mtl/examples/euclid_norm.cc" target="_blank" style="color: rgb(66, 99, 171); ">http://www.osl.iu.edu/research/mtl/examples/euclid_norm.cc</a></div><div><br></div>
<div>// -*- c++ -*-</div><div>//</div><div>// $COPYRIGHT$</div><div>//</div><div>//===========================================================================</div><div><br></div><div>/*</div><div>#include &quot;mtl/mtl.h&quot;</div>
<div>#include &quot;mtl/utils.h&quot;</div><div>#include &quot;mtl/linalg_vec.h&quot;</div><div>*/</div><div><br></div><div>#include &lt;mtl/mtl.h&gt;</div><div>#include &lt;mtl/utils.h&gt;</div><div>#include &lt;mtl/linalg_vec.h&gt;</div>
<div><br></div><div>/*</div><div>&nbsp;&nbsp;Sample output;</div><div><br></div><div>X: [1,5,3,1,]</div><div>The L-2 norm of X is 6 &nbsp;&nbsp;</div><div>&nbsp;*/</div><div><br></div><div>using namespace mtl;</div><div>using namespace std;</div>
<div><br></div><div>typedef external_vec&lt;double&gt; Vec;</div><div><br></div><div>int</div><div>main()</div><div>{</div><div>&nbsp;&nbsp;double data[] = {1,5,3,1};</div><div>&nbsp;&nbsp;Vec x(data, 4);</div><div>&nbsp;</div><div>&nbsp;&nbsp;double s = two_norm(x);</div>
<div><br></div><div>&nbsp;&nbsp;cout &lt;&lt; &quot;X: &quot;;</div><div>&nbsp;&nbsp;print_vector(x);</div><div><br></div><div>&nbsp;&nbsp;cout &lt;&lt; &quot;The L-2 norm of X is &quot; &lt;&lt; s &lt;&lt; endl;</div><div><br></div><div>&nbsp;&nbsp;return 0;</div>
<div>}</div><div><br></div><div><br></div><div><br></div><div>****************************<br></div><div>error messages</div>****************************</div><div><br></div><div><div>Compiling...</div><div>euclid_norm.cpp</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(128) : warning C4346: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::value_type&#39; : dependent name is not a type</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;prefix with &#39;typename&#39; to indicate a type</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(177) : see reference to class template instantiation &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::__iterator&lt;isConst&gt;&#39; being compiled</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(106) : see reference to class template instantiation &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned&#39; being compiled</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(414) : see reference to class template instantiation &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;&#39; being compiled</div><div>
c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(128) : error C2144: syntax error : &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::value_type&#39; should be preceded by &#39;;&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(128) : error C2208: &#39;T&#39; : no members defined using this type</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(129) : warning C4346: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::pointer&#39; : dependent name is not a type</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;prefix with &#39;typename&#39; to indicate a type</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(129) : error C2144: syntax error : &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::pointer&#39; should be preceded by &#39;;&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(129) : error C2602: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::pointer&#39; is not a member of a base class of &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::__iterator&lt;isConst&gt;&#39;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(111) : see declaration of &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::pointer&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(129) : error C2868: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::pointer&#39; : illegal syntax for using-declaration; expected qualified-name</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(130) : warning C4346: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::size_type&#39; : dependent name is not a type</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;prefix with &#39;typename&#39; to indicate a type</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(130) : error C2144: syntax error : &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::size_type&#39; should be preceded by &#39;;&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(130) : error C2208: &#39;SizeType&#39; : no members defined using this type</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(131) : warning C4346: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::difference_type&#39; : dependent name is not a type</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;prefix with &#39;typename&#39; to indicate a type</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(131) : error C2144: syntax error : &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::difference_type&#39; should be preceded by &#39;;&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(131) : error C2602: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::difference_type&#39; is not a member of a base class of &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::__iterator&lt;isConst&gt;&#39;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(113) : see declaration of &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::difference_type&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(131) : error C2868: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::difference_type&#39; : illegal syntax for using-declaration; expected qualified-name</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(133) : warning C4346: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::const_reference&#39; : dependent name is not a type</div><div>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;prefix with &#39;typename&#39; to indicate a type</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(133) : error C2923: &#39;mtl::IF&#39; : &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::const_reference&#39; is not a valid template type argument for parameter &#39;A&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(133) : warning C4346: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::reference&#39; : dependent name is not a type</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;prefix with &#39;typename&#39; to indicate a type</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(133) : error C2923: &#39;mtl::IF&#39; : &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::reference&#39; is not a valid template type argument for parameter &#39;B&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(133) : error C2146: syntax error : missing &#39;;&#39; before identifier &#39;reference&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(133) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(133) : error C2602: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::reference&#39; is not a member of a base class of &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::__iterator&lt;isConst&gt;&#39;</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(108) : see declaration of &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::reference&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(133) : error C2868: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::reference&#39; : illegal syntax for using-declaration; expected qualified-name</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(137) : error C2061: syntax error : identifier &#39;size_type&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(154) : error C2061: syntax error : identifier &#39;size_type&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(154) : error C2805: binary &#39;operator +=&#39; has too few parameters</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(154) : error C2333: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::__iterator&lt;isConst&gt;::operator +=&#39; : error in function declaration; skipping function body</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(159) : error C2061: syntax error : identifier &#39;size_type&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(159) : error C2805: binary &#39;operator -=&#39; has too few parameters</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(159) : error C2333: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::__iterator&lt;isConst&gt;::operator -=&#39; : error in function declaration; skipping function body</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(165) : error C2146: syntax error : missing &#39;;&#39; before identifier &#39;index&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(165) : error C2433: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::__iterator&lt;isConst&gt;::size_type&#39; : &#39;inline&#39; not permitted on data declarations</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(165) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(165) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(165) : warning C4183: &#39;index&#39;: missing return type; assumed to be a member function returning &#39;int&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(167) : error C2143: syntax error : missing &#39;;&#39; before &#39;&amp;&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(167) : error C2433: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::__iterator&lt;isConst&gt;::size_type&#39; : &#39;inline&#39; not permitted on data declarations</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(167) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(167) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(167) : warning C4183: &#39;pos&#39;: missing return type; assumed to be a member function returning &#39;int&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(168) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(168) : error C2143: syntax error : missing &#39;;&#39; before &#39;&amp;&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(168) : error C2433: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::__iterator&lt;isConst&gt;::size_type&#39; : &#39;inline&#39; not permitted on data declarations</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(168) : error C2086: &#39;oned::oned::size_type size_type&#39; : redefinition</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(130) : see declaration of &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::__iterator&lt;isConst&gt;::operator size_type&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(168) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(168) : warning C4183: &#39;pos&#39;: missing return type; assumed to be a member function returning &#39;int&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(170) : error C2146: syntax error : missing &#39;;&#39; before identifier &#39;row&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(170) : error C2433: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::__iterator&lt;isConst&gt;::size_type&#39; : &#39;inline&#39; not permitted on data declarations</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(170) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(170) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(170) : warning C4183: &#39;row&#39;: missing return type; assumed to be a member function returning &#39;int&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(171) : error C2146: syntax error : missing &#39;;&#39; before identifier &#39;column&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(171) : error C2433: &#39;mtl::light_matrix&lt;T,SizeType,Orien,Strided&gt;::oned::__iterator&lt;isConst&gt;::size_type&#39; : &#39;inline&#39; not permitted on data declarations</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(171) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(171) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(171) : warning C4183: &#39;column&#39;: missing return type; assumed to be a member function returning &#39;int&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(174) : error C2146: syntax error : missing &#39;;&#39; before identifier &#39;i&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(174) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(174) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(174) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(175) : error C2146: syntax error : missing &#39;;&#39; before identifier &#39;offset&#39;</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(175) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(175) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(176) : error C2146: syntax error : missing &#39;;&#39; before identifier &#39;stride&#39;</div><div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(176) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div>
<div>c:\program files\matrix template library\mtl-2.1.2-21\mtl\light_matrix.h(176) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div><div>Build log was saved at &quot;file://c:\Documents and Settings\Anthony\My Documents\Visual Studio 2008\Projects\MTL_Test\MTL_Test\Debug\BuildLog.htm&quot;</div>
<div>MTL_Test - 54 error(s), 11 warning(s)</div><div>========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========</div></div></div></span>

------=_Part_177722_11364043.1230980727029--

--===============0955438181==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
--===============0955438181==--