matus-chochlik / oglplus

OGLplus is a collection of open-source, cross-platform libraries which implement an object-oriented facade over the OpenGL® (version 3 and higher) and also OpenAL® (version 1.1) and EGL (version 1.4) C-language APIs. It provides wrappers which automate resource and object management and make the use of these libraries in C++ safer and more convenient.
http://oglplus.org/
Boost Software License 1.0
492 stars 72 forks source link

Error building project on OSX from bad reference to non-existent identifier 'size' #115

Closed jherico closed 9 years ago

jherico commented 9 years ago

I'm building a project and using this for my include code:


#define OGLPLUS_USE_GLCOREARB_H 0
#if defined(__APPLE__)
#define OGLPLUS_USE_GL3_H 1
#elif defined(WIN32)
#define OGLPLUS_USE_GLEW 1
#pragma warning(disable : 4068)
#elif defined(ANDROID)
#else
#define OGLPLUS_USE_GLCOREARB_H 1
#endif

#define OGLPLUS_USE_BOOST_CONFIG 1
#define OGLPLUS_NO_SITE_CONFIG 1
#define OGLPLUS_LOW_PROFILE 1
#include <oglplus/gl.hpp>
#include <oglplus/all.hpp>
#include <oglplus/interop/glm.hpp>
#include <oglplus/bound/texture.hpp>
#include <oglplus/bound/framebuffer.hpp>
#include <oglplus/bound/renderbuffer.hpp>
#include <oglplus/shapes/wrapper.hpp>
#include <oglplus/shapes/plane.hpp>

The problem arises in texture.ipp where there are a couple of references to OGLPLUS_FAKE_USE(size); but there is no size value in scope.

Commenting out the two instances seems to resolve the issue.

matus-chochlik commented 9 years ago

Hi,

Should be fixed on develop, but beware that I did some changes recently on develop which were not yet thoroughly tested.

matus-chochlik commented 9 years ago

OK, I've did some testing of the develop branch with clang and gcc and it should be ready to be used. I plan a to do a few more changes and then do a release (hopefully by the end of the week)