View Full Version : {Linker error} undefined reference to ...

03-25-2009, 04:02 PM
I'm new to OpenGL and I can't get the Linker error to go away. HELP

03-25-2009, 04:13 PM
Add the needed libs in your linker settings.
Can you be more specific ? Undefined reference to what ? Which compiler/IDE do you use ?

03-25-2009, 04:19 PM
OK, What are the libs and how do I change my linker settings
Undefined reference to 'glBegin@4'. I am using Dev-C++

03-25-2009, 05:43 PM
In "Project options"/parameters/Linker :

maybe also -lglu32 -lglut etc

You know that Devc++ has convenient community packages that you can download from the IDE, by doing Tools/Check for updates/packages ?

Get the ones having "GL" in the name, then you will be able to start a new project from a working glut / sdl / whatever template.