How to build a ViennaCl project using Visual C++ 2010? -
i have built viennacl using mingw32-make , run of generated tests on windows 7 x64. when try build new viennacl project using visual c++ 2010 ultimate, linker gives me below answer:
error lnk2019: riferimento al simbolo
esterno _clgetplatformids@12 non risolto nella funzione "class std::vector > __cdecl viennacl::ocl::get_platforms(void)"
code:
#include "stdafx.h" #include <process.h> #include <viennacl\ocl\device.hpp> #include <viennacl\ocl\platform.hpp> int _tmain(int argc, _tchar* argv[]) { typedef std::vector< viennacl::ocl::platform > platforms_type; platforms_type platforms = viennacl::ocl::get_platforms(); system("pause"); return 0; }
p.s. sorry linker's italian answer. basically, linker cannot find function _clgetplatformids. in advance. pietro.
Comments
Post a Comment