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 in Example Hello World program "Program build error (in " #148

Open creallfluharty opened 5 years ago

creallfluharty commented 5 years ago

I was compiling and executing the Hello World example from https://matus-chochlik.github.io/oglplus/doc/oglplus/intro.html only to meet a rather undescriptive

Program build error (in

error (the cutoff is intentional). From what I collect, this is caused by writing a dereferenced nullptr to cerr. Specifically, it seems that it occurs in Error::GLFunc() where the variable _glfunc_name is a nullptr.

Is this expected behaviour? If not, is it this function, the example, or both that need to be changed?

Also, I believe the reason for this exception occurring in the first place is my having an outdated openGL version, but this error unfortunately was not much use in finding that out.