cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

heterogeneous
Adept I

Need Help

hello there,

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.

best regards

0 Likes
11 Replies
himanshu_gautam
Grandmaster

Re: Need Help

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).

0 Likes
heterogeneous
Adept I

Re: Need Help

Hello,

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.

Thank's

0 Likes
himanshu_gautam
Grandmaster

Re: Need Help

IIRC, there was a similar issue with CPP_cl samples on mingw. Can you try using cygwin once?

heterogeneous
Adept I

Re: Need Help

hello,

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 ?

Thank's

0 Likes
himanshu_gautam
Grandmaster

Re: Need Help

Are you using APP SDK 2.8? or APP SDK 2.8.1?

0 Likes
heterogeneous
Adept I

Re: Need Help

hey,

I use AMD-APP-SDK-v2.8-Windows-64. I will try 2.8.1, and see again.

best regards.

0 Likes
heterogeneous
Adept I

Re: Need Help

hello,

still got the same errors with version 2.8.1, i think that i waste my time for nothing, i will use directly C API rather than CPP.

Thanks for help.

0 Likes
himanshu_gautam
Grandmaster

Re: Need Help

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.

heterogeneous
Adept I

Re: Need Help

hello,

Ok, so i must install visual studio, is there any specific headers and libraries that comes with visual studio, and make all work fine ?

regards.

0 Likes