Hi,

I'm trying to compile this project:

https://github.com/smistad/GPU-Marching-Cubes

on my Mac OS X 10.8.5 (Mountain Lion), with command line tools from Xcode 5.0.

the project includes cl.hpp version 1.2.4 from here:

https://github.com/smistad/OpenCLUti.../OpenCL/cl.hpp

CMake runs cleanly and finds the OpenCL framework and headers, but when
I 'make' the project I get:


In file included from /Users/nyholku/https:/github.com/smistad/GPU-Marching-Cubes/OpenCLUtilities/openCLUtilities.cpp:1:
In file included from /Users/nyholku/https:/github.com/smistad/GPU-Marching-Cubes/OpenCLUtilities/openCLUtilities.hpp:9:
/Users/nyholku/https:/github.com/smistad/GPU-Marching-Cubes/OpenCLUtilities/OpenCL/cl.hpp:678:1: error: expected unqualified-id
{
^

and a lot of other errors. Looking the code that includes cl.hpp I see these definition before
the include:

#define __NO_STD_VECTOR // Use cl::vector instead of STL version
#define __CL_ENABLE_EXCEPTIONS
#define __USE_GL_INTEROP

#include <iostream>
#include <fstream>
#include <utility>
#include <string>
#include <GL/glew.h>
#include <GLUT/glut.h>
#include "OpenCLUtilities/OpenCL/cl.hpp"

If I undef the __NO_STD_VECTOR the compilation gets further (but not
complete cleanly) but I expect it would not work.

So I'm guessing this has something to do with the vector-template but
I'm not sure how to approach this problem as presumably this project
build just fine on Windows and Linux ie this is likely some setup
or version incompatibility with Mac OS / tools.

The compiler is:

Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix

br Kusti