# Opengl linker error

**URL:** <https://forum.kirupa.com/t/opengl-linker-error/276607>\
**Category:** Uncategorized\
**Created:** [December 1, 2008, 3:49pm UTC](https://forum.kirupa.com/t/opengl-linker-error/276607 "2008-12-01T15:49:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jynx](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@jynx](https://forum.kirupa.com/u/jynx)\
**Post date:** [December 1, 2008, 3:49pm UTC](https://forum.kirupa.com/t/opengl-linker-error/276607/1 "2008-12-01T15:49:04Z")

</div>

#include \<windows.h\>  
#include \<iostream\>  
#include \<GL/gl.h\>  
#include \<GL/glu.h\>  
#include \<GL/glut.h\>  
#include \<GL/glui.h\>  
#include \<GL/glext.h\>

and I get linker errors for all the opengl functions used. [Linker error] undefined reference to `glutSolidCube’ for example.

how can i fix this?
