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.
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.
<<<< 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
Well, the story is that cygwin is used for testing APP SDK Samples on windows, and therefore makefiles select cl.exe instead of g++. How are you getting your error:
Visual Studio as recommended in Installation notes should just work fine.
I just read errors from console output, I did not really dig, now I have decided to use the C API, I seek for the CPP API to see what opencl look like (because I was beginner and I want something easy to learn), and making some performance test between CPU and GPU, but when I look closely I found that C version is more détailed so I choose to use it, for probleme of CPP version, I have switched to Ubuntu and all work fine.
thank's for sharing.