i installed AMD APP SDK for windows 64 bit. the compiler compile without error when using cl.h, but when i try to compile my code that include cl.hpp header, it gives error telling me that : stdext is not declared and errors like expected primary-expression before * and many, known that i included all opencl headers and library, so i want to know solution for this.
Do you see this error on SDK Samples or your own code?
Please refer to the #defines used in sample CpluPlusWrapper (eg _NO_STD_VECTOR, CL_USE_DEPRECATED_1_1_APIs etc).
Yes, i try many examples that uses cl.hpp and it doesn't work for windows, with the same errors (syntaxic errors, occurs when the code use classe that do not exist or note declared, so i must include or define something but i don't know...), i don't have visualbasic, i try first with eclipse and dev-c++ the compilation succeed only, when i use cl.h header. I try it on ubuntu and all work fine, but the catalyse driver on ubuntu do not switch automatically between the integrated card and the discret one, so this the reason that i use windows. For compilation, i use MinGW.
i use the defines that you have mentionned above and still got errors.
i try cygwin, when you include cl.hpp header without using it, it compile without errors, but when i try the example of CplusplusWrapper.cpp i got error but not like i montionned above they have been changed like this :
cl.hpp:867:40: error: there are no arguments to â€˜allocaâ€™ that depend on a template parameter, so a declaration of â€˜allocaâ€™ must be available.
Method 'what' could not be resolved main.cpp /testcyg line 81 Semantic Error
so what i can do ?
C++ API is very helpful, and reduces a lot of bloat code. I am able to run CpluPlusWrapper, using a linux machine, and using a windows machine (using Visual Studio). I can try Mingw after installing it next week.