View Full Version : How to compile OpenCL example in MS VC++?
02-02-2009, 08:22 AM
Where are essential header and .lib files?
02-02-2009, 05:18 PM
Header files are available from http://www.khronos.org/registry/cl/
I'm not aware of a public implementation; so for the .lib you'll need to wait until one is published.
Hope that helps.
there are libs / headers there but not "stdint.h" (included in cl.h) which is a part of GCC compiler,
So can this preliminar release be compiled on VC++?
05-18-2009, 07:19 AM
From what I have found, OpenCL cannot be compiled, at least under VS2008. There is an issue with not being able to pass aligned types to functions. The only way around this is to configure VS to use the GCC compiler, although I couldn't get that to work either. I set up CodeBlocks and everything compiles fine.
05-20-2009, 01:20 PM
It is easy to fix the compilation problems.
Please check the MiniCL project (http://code.google.com/p/minicl), a small subset of OpenCL used for the Bullet Physics SDK. It has working OpenCL header files.
Hopefully this gets addressed in the Khronos website.
05-20-2009, 01:21 PM
(by the way, this problem will be fixed in an upcoming OpenCL update on the Khronos website)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.