<div dir="ltr"><div>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<br><br><span style="font-family:monospace,monospace">    error: undefined reference to &#39;glEnable&#39;<br>    error: undefined reference to &#39;glBlendFunc&#39;<br>    error: undefined reference to &#39;glClearColor&#39;<br>    clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>    ...<br></span><br></div>How do I build programs that use OpenGL functions?<br></div>