2013-08-28 17 views
1

我试图编译从科纳斯组织的cl.hpp用VS2010编译,我有以下消息:的OpenCL了C++绑定

1>c:\users\facundo\documents\visual studio 2010\projects\opencl\opencl\cl.hpp(4757): error C2039: 'resize' : it is not a member of 'cl::vector<T>' 
1>   with 
1>   [ 
1>    T=cl_context_properties 
1>   ] 

如何正确编译VS2010上C++/OpenCL的项目?

回答

4

cl::vector<>已被弃用。

默认情况下,cl.hpp应该选择std::vector<>作为默认的向量类。

也许你定义了__NO_STD_VECTOR或者你自己使用cl::vector<>