Telling Indexer to use Mac OpenCL framework [message #808599] |
Mon, 27 February 2012 23:50 |
K Peterson Messages: 1 Registered: February 2012 |
Junior Member |
|
|
Hi,
I'm having indexer problems. I'm working on a Mac and adding some OpenCL stuff to my project. I added the framework information to the compiler and my code compiles and runs ok, so I can work, but Eclipse's indexer cannot find opencl.h and so tells me my code is full of errors where ever there is a call to an opencl function or use of an opencl definition. Not only that, but with the opencl code added to the project, the indexer is showing me lots of other meaningless errors like saying that NULL is undefined.
I already tried going to Eclipse->Preferences and selecting "Indexer" and adding to "Files to index up-front":
OpenCL, /System/Library/Frameworks/OpenCL.framework/Headers/, /System/Library/Frameworks/OpenCL.framework/Headers/cl_ext.h, /System/Library/Frameworks/OpenCL.framework/Headers/cl_gl_ext.h, /System/Library/Frameworks/OpenCL.framework/Headers/cl_gl.h, /System/Library/Frameworks/OpenCL.framework/Headers/cl.h, /System/Library/Frameworks/OpenCL.framework/Headers/gcl.h, /System/Library/Frameworks/OpenCL.framework/Headers/opencl.h
in the hope that something in there would help the indexer to find opencl.h, but it still tells me that OpenCL/opencl.h is an unresolved inclusion and still tells me my code is full of errors.
I've also tried selecting "Index source files not included in the build", "index unused headers", "allow heuristic resolution of includes", and I've opened opencl.h in the editor and selected "index source and header files opened in editor". But nothing will make the indexer happy.
Has anyone here managed to tell the Indexer to look in a framework?
|
|
|
|
Powered by
FUDForum. Page generated in 0.01894 seconds