You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I compiled a static version of glbinding using cmake (libglbinding.a), but when i try to link this into my project I just get many errors like: undefined reference to '__imp__ZN2gl8glEnableENS_6GLenumE'
I'm using CLion and the latest version of CMake.
Here is my CMakeLists.txt:
The reason I want to statically link is so that I can create a standalone executable for my project. If instead I use the dynamic linking (glbinding::glbinding), when I run the executable it says it can't find the dll file.
To note, the program does run fine if it isn't statically linked when run in CLion (but cannot be run as a standalone executable).
This is my first time using CMake and CLion so I apologise for not really knowing what to do. Please say if you need any more information. :)
The text was updated successfully, but these errors were encountered:
Maybe not as strictly related to your issue, but an issue nonetheless: glbinding, even when build as statically linked library, will link the standard C++ library dynamically.
More related to your issue is the unsuccessful search of the glbinding library. You may need to copy the .dll to your working directory; next to your executable.
We currently advise against using glbinding as statically linked library.
Another issue I see is the direct mentioning of the static library of glbinding. You should use our exported glbinding::glbinding cmake target as it comes with additional headers and compiler definitions.
I compiled a static version of glbinding using cmake (libglbinding.a), but when i try to link this into my project I just get many errors like:
undefined reference to '__imp__ZN2gl8glEnableENS_6GLenumE'
I'm using CLion and the latest version of CMake.
Here is my CMakeLists.txt:
The reason I want to statically link is so that I can create a standalone executable for my project. If instead I use the dynamic linking (
glbinding::glbinding
), when I run the executable it says it can't find the dll file.To note, the program does run fine if it isn't statically linked when run in CLion (but cannot be run as a standalone executable).
This is my first time using CMake and CLion so I apologise for not really knowing what to do. Please say if you need any more information. :)
The text was updated successfully, but these errors were encountered: