# Setting up Freeglut Code::Bloks

**URL:** <https://community.khronos.org/t/setting-up-freeglut-code-bloks/73058>\
**Category:** OpenGL: Basic Coding\
**Created:** [February 15, 2015, 7:48am UTC](https://community.khronos.org/t/setting-up-freeglut-code-bloks/73058 "2015-02-15T07:48:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krounnouns](https://community.khronos.org/letter_avatar_proxy/v4/letter/k/ee59a6/32.png) [@Krounnouns](https://community.khronos.org/u/Krounnouns)\
**Post date:** [February 15, 2015, 7:48am UTC](https://community.khronos.org/t/setting-up-freeglut-code-bloks/73058/1 "2015-02-15T07:48:31Z")

</div>

Hi guys. I want to learn OpenGL programming and I tryed to create a pojects on Code::Blocks. So, I created a new empty project and in ‘build options’ \> search directories \> compiler I put the folder adress that contains freeglut’s include files. In search directories \> linker I put the folder address that contains freeglut’s 64bit libraries. In ‘other linker options’ i put “-lOpenGL32 -lglu32 -lfreeglut” but when i try to create a simple source code “main.c” that include “GL\freeglut.h” I get these linker errors…

undefined reference to \_imp\_\_\_\_glutInitWithExit 12  
undefined reference to \_imp\_\_\_\_glutCreateWindowWithExit 8  
undefined reference to \_imp\_\_\_\_glutCreateMenuWithExit 8

Thanks in advace.  
(Sorry for bad English)
