[swift-users] Swift can’t compile code with OpenGL function pointers
kelvinsthirteen at gmail.com
Thu Mar 30 09:47:15 CDT 2017
OpenGL functions are loaded at runtime by a function loader (like GLFW).
They’re defined in a header but obviously they don’t have definitions at
compile time so it causes a slew of linker errors when I try to build
error: undefined reference to 'glEnable'
error: undefined reference to 'glBlendFunc'
error: undefined reference to 'glClearColor'
clang: error: linker command failed with exit code 1 (use -v to see
How do I build programs that use OpenGL functions?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users