acdemiralp / gl

Header-only C++17 wrapper for OpenGL 4.6 Core Profile.
Boost Software License 1.0
158 stars 11 forks source link

Add file "export.hpp" #5

Closed porky11 closed 7 years ago

porky11 commented 7 years ago

When including this, the file gl/export.hpp is not found. You probably forgot to git add it, because it's not in the directory include/gl/

acdemiralp commented 7 years ago

Hello, cmake automatically creates this file once you build the library. I have also added it to the repository now for convenience.

porky11 commented 7 years ago

No, didn't help. Just including gives following error now (using clang++):

/usr/local/include/gl/opengl.hpp:16:1: error: unknown type name '__declspec'
GL_EXPORT bool initialize ();
^
/usr/local/include/gl/export.hpp:15:25: note: expanded from macro 'GL_EXPORT'
#      define GL_EXPORT __declspec(dllimport)
                        ^