Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5956411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:15:12+00:00 2026-05-22T18:15:12+00:00

I have seen 2 posts with this same question but one was with visual

  • 0

I have seen 2 posts with this same question but one was with visual studio and the other didn’t work so here goes. i am attempting to compile the first source code that comes with the opening bible 5th edition…but i am trying to do so with the code::blocks ide.
i thought i had freeglut installed correctly(as i can run the glut program that comes with C::B) but i am getting numerous errors from glut and glu…and after i thought i fixed those problems now im getting over 50 error and i have no idea what is causing them.
the error look like this

obj\Debug\main.o(.text+0x2eb):C:\Users|20|undefined reference to `GLShaderManager::~GLShaderManager()'|

C:\Users\t\main.cpp|27|undefined reference toglViewport@16’|`

all the error are very similar but the undefined reference changes to another OpenGL function.

any help would be appreciated and just ask if you need the source code or more error.

EDIT
after adding glu32 to the linker it got rid of all error regarding that
but there appear to be a problem with my freeglut installation i am getting error

obj\Debug\main.o(.text+0x1c)||In function `glutInit_ATEXIT_HACK':|

freeglut_std.h|610|undefined reference to `_imp____glutInitWithExit@12'|

obj\Debug\main.o(.text+0x3f)||In function `glutCreateWindow_ATEXIT_HACK':|

freeglut_std.h|612|undefined reference to `_imp____glutCreateWindowWithExit@8'|

obj\Debug\main.o(.text+0x61)||In function `glutCreateMenu_ATEXIT_HACK':|

freeglut_std.h|614|undefined reference to `_imp____glutCreateMenuWithExit@8'|

solved free glut problem…i had to use different library files…. i got them from here

Edit 2
i got freeglut working by now the custom library that the book used is giving me an error…i belive this is becouse i am attempting to use a .lib file (which is what it came as) this might have been the source of all my errors…can C::B link .lib files or does it only take .a and .o files for library?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:15:12+00:00Added an answer on May 22, 2026 at 6:15 pm

    You have to add proper libraries to link against with.

    For C::B,

    • Go to Project
    • Select Build Option
    • Select Linkers
    • Add OpenGL, Glu32 libraries to your project.

    Response to your EDIT:

    Follow the steps in here: http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/glut/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen a few posts regarding this issue but not one specific to
I have seen this question and a number of blog posts related to using
I have seen this question floating around the internet, but I haven't found a
I have seen several other posts with similar questions but nothing exactly like what
Many posts on different aspects of this question but I haven't seen a post
I already seen some question from here (stackoverflow) and THIS post, but I still
All right, I've seen some posts asking almost the same thing but the points
I've seen several other posts similar to this (namely https://stackoverflow.com/questions/5237/solutions-for-working-with-multiple-branches-in-asp-net ) but there are
This is probably a very simple and stupid question to ask, but I have
Ok, here is the deal, I have seen a few posts on SO relating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.