You have to link with the GL and GLUT libraries as well. On Dev-C++ you can "add these commands to the linker command line" under compiler options, or if you have a project you can set up the libraries in project options. In fact if you had chosen OpenGL project from the list in Dev-C++ in the first place they'd already be there.