Question

I tried to use freeglut with codeblocks and also Microsoft visual studio 2010. I tried the official codeblocks instruction page but still I couldn't successfully use it. So I tried directly including the freeglut file like this(by copying it in the folder of my c++ files):

#include "freeglut.h"

And then I tried to compile with gcc compiler through the terminal. It threw a ton of different errors. How can I use freeglut without an IDE? If I can't do you have any suggetions/links as to how I can install and use?

Note Using windows 7 32 bit

Was it helpful?

Solution

you are not telling gcc that your program has to link with freeglut.lib. Compile your program with flag -lglut

You need to use this information for setting up freeglut on cygwin

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top