Sign in to follow this  

glut errors

This topic is 2043 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, i have been reading up on some opengl and glut and desided to use it. however i cant get glut to work. i have tryed online toutorials and videos and none work. i am using ubuntu 11.10 and the Code::Blocks ide. i keep getting the errors saying undefined referance to all my glut calls and i am starting to get pissed...Please help me!!!

Share this post


Link to post
Share on other sites
[quote name='Crusable77' timestamp='1336456985' post='4938301']
Hello, i have been reading up on some opengl and glut and desided to use it. however i cant get glut to work. i have tryed online toutorials and videos and none work. i am using ubuntu 11.10 and the Code::Blocks ide. i keep getting the errors saying undefined referance to all my glut calls and i am starting to get pissed...Please help me!!!
[/quote]

The original GLUT is so old that some of its revival forks are abandoned. Freeglut might me more of interest to you.

Share this post


Link to post
Share on other sites
Have you added the library files to the linking process? Because when you forget to do this and just include the header files, on linking the linker will give you unresolved reference errors as it doesn't know what code the functions need to link to.

Share this post


Link to post
Share on other sites
What build tool are you using for compiling your source? As this mostly comes down to the build tool you are using.

In GCC you specify additional include libraries on the command line like:
[code]
gcc example.o -lglut
[/code]
The -l flag is used for additional libraries followed immediately by the library name, but how this is done comes down more to the tool you are using to compile and link with then anything else.

MSBuild for example has an option in it's project file that specifies which additional libraries should be used when linking, so do most other build tools. Google your build tools name and linking with additional libraries and you should find enough information on the web to get you started. Edited by NightCreature83

Share this post


Link to post
Share on other sites

This topic is 2043 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this