Complier error in Dev-C++ with MTL
fmingu <[email protected]> Mon, 8 Feb 2010 16:09:08 +0800 (CST)
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============0816610612==
Content-Type: multipart/alternative;
boundary="----=_Part_92325_10447913.1265616548766"
------=_Part_92325_10447913.1265616548766
Content-Type: text/plain; charset=gbk
Content-Transfer-Encoding: 7bit
I am using MTL(Matrix template library) in Dev-C++ 4.9.8.0. The gcc version is 3.2.
Due to the limited disk space in the computer I did not install the VC2008 yet.
That is my simple program :
#include <iostream>
#include <stdlib.h>
using namespace std;
# include <mtl/mtl.h>
.....................................
But the complier told me that
In file included from F:/Dev-Cpp/myproject/mtl_2_1_2_21/mtl-2.1.2-21/mtl/light1D.h
F:/Dev-Cpp/myproject/mtl_2_1_2_21/mtl-2.1.2-21/mtl/matrix_traits.h:153: `
SPARSE' was not declared in this scope
and the line in the header file matrix_traits.h is
......................
struct sparse_tag { enum { id = SPARSE }; };
..............................
After I searched the whole directory of MTL ,no file contains the SPARSE,
The same problem occurred to the string "index_from_zero".
I am using mtl-2.1.2-21.tar.gz under windows.
And I do not know how to solve it.
Can any one with kindness help me?
------=_Part_92325_10447913.1265616548766
Content-Type: text/html; charset=gbk
Content-Transfer-Encoding: 7bit
<DIV>
<DIV>I am using MTL(Matrix template library) in Dev-C++ 4.9.8.0. The gcc version is 3.2.<BR>Due to the limited disk space in the computer I did not install the VC2008 yet.<BR>That is my simple program :<BR>#include <iostream><BR>#include <stdlib.h><BR><BR>using namespace std;<BR><BR># include <mtl/mtl.h><BR>.....................................<BR>But the complier told me that <BR>In file included from F:/Dev-Cpp/myproject/mtl_2_1_2_21/mtl-2.1.2-21/mtl/light1D.h<BR><BR>F:/Dev-Cpp/myproject/mtl_2_1_2_21/mtl-2.1.2-21/mtl/matrix_traits.h:153: `<BR>SPARSE' was not declared in this scope<BR><BR>and the line in the header file matrix_traits.h is <BR>......................<BR>struct sparse_tag { enum { id = SPARSE }; };<BR>..............................</DIV>
<DIV>After I searched the whole directory of MTL ,no file contains the SPARSE,</DIV>
<DIV>The same problem occurred to the string "index_from_zero".</DIV>
<DIV>I am using <A href="http://www.osl.iu.edu/download/research/mtl//mtl-2.1.2-21.tar.gz">mtl-2.1.2-21.tar.gz</A> under windows.</DIV>
<DIV><BR>And I do not know how to solve it.<BR>Can any one with kindness help me?</DIV><!-- / message --></DIV><br><br><span title="neteasefooter"/></span>
------=_Part_92325_10447913.1265616548766--
--===============0816610612==
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/
--===============0816610612==--