请问MTL(Matrix Template Library)怎么在Vs.net 2003安装使用

linuxfly 2003-10-28 01:54:09
加精
我下载了MTL库,并且将mtl子目录拷贝到了
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include
新建一个工程,包含#include "mtl\mtl.h"
编译出现如下错误

c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\mtl\light1D.h(87) : error C2039: “_Ptrit” : 不是“std”的成员

请问这个问题如何解决?

MTL库的下载地址:http://www.osl.iu.edu/research/mtl/download.php3
...全文
286 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
guiness8110 2003-11-23
  • 打赏
  • 举报
回复
I don't know
linghuye 2003-10-29
  • 打赏
  • 举报
回复
下载解压并覆盖
http://linghuye.nease.net/Tools/mtl_vc71patch.rar
linuxfly 2003-10-28
  • 打赏
  • 举报
回复
gz
linuxfly 2003-10-28
  • 打赏
  • 举报
回复
大家想想办法
leyt 2003-10-28
  • 打赏
  • 举报
回复
关注
linuxfly 2003-10-28
  • 打赏
  • 举报
回复
用户安装文档写的是这些(关于vc安装的)

* Use winzip (or whatever) to unzip the MTL Windows distribution file.

* Set the include directory to point to the top directory
of the MTL distrubution tree.

- In the CodeWarrior IDE this is in the Edit->...Settings->Access Paths
- In VC++ IDE this is in Tools->Options->Directories
(with "Show directories for: Include files" selected)

* Add the proper includes in your source files. Such as

#include <mtl/matrix.h>
#include <mtl/mtl.h>

The documentation for each MTL class and function specifies
which file it is in.

* If you also want to run the MTL examples and testsuite
follow the directions below, otherwise you are done. Enjoy!
-----------------------------------------------------------------------

- If using VC++, set the LIB and INCLUDE environment variables

LIB /Program Files/Microsoft Visual Studio/Vc98/Lib

INCLUDE /Program Files/Microsoft Visual Studio/Vc98/Include
ttlb 2003-10-28
  • 打赏
  • 举报
回复
会不会是类库和vc不兼容?查查用户手册和msdn吧。
mechgoukiteng 2003-10-28
  • 打赏
  • 举报
回复
去csdn的文档中心找ccboy写的资料
linuxfly 2003-10-28
  • 打赏
  • 举报
回复
我只是加上了#include "mtl\mtl.h"

还没有创建任何对象编译就不能通过
出错地方在MTL源代码的"light1D.h"文件里面的
typedef std::_Ptrit<value_type, difference_type, pointer, reference, pointer, reference> ptr_iterator;
这一行
ttlb 2003-10-28
  • 打赏
  • 举报
回复
MTL的名字空间是什么?应该不是std吧?
using namespace MTL'sNameSpace;
这样才行。

24,855

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧