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 4111720
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:06:10+00:00 2026-05-20T22:06:10+00:00

Okay, so here’s the situation: I have an application which uses SDL and OpenGL.

  • 0

Okay, so here’s the situation:

I have an application which uses SDL and OpenGL. I’ve been developing it in Linux (Ubuntu 10.10), and on that platform it compiles, builds, and runs without a hitch. I would like to be able to test my application on Windows, and to that end I have been attempting to cross-compile it with the MinGW toolchain. Right now, the application compiles with no warnings, but for the life of me I cannot get it to link the OpenGL libraries correctly. To be specific, I get the following errors a large number of times:

undefined reference to _glUseProgram@4'
undefined reference to
_glDetachShader@8′
undefined reference to _glDeleteProgram@4'
undefined reference to
_glDeleteShader@4′
undefined reference to _glCreateProgram@0'
undefined reference to
_glCreateShader@4′
undefined reference to _glShaderSource@16'
undefined reference to
_glCompileShader@4′
undefined reference to _glGetShaderiv@12'
undefined reference to
_glGetShaderInfoLog@16′
undefined reference to “_glAttachShader@8′
…and so on

For completeness, the command used to link the application:

i586-mingw32msvc-g++ -Wall -g -DGL_GLEXT_PROTOYPES -o <output file> <object files> -Llib/lib -lmingw32 -lSDLmain -lSDL -mwindows -lglu32 -lopengl32 -I./include -I/usr/include -I./lib

Googling has led me to understand that the glu32 and opengl32 libraries only support an early version of OpenGL (like 1.1 or 1.4), and my application uses OpenGL 3.0+ features, so that is my current theory of where the problem is coming from. That being said, I really have no idea how to fix it.

It should be noted that I am very new to software development, so my understanding of how things work is rather shallow at this point.

  • 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-20T22:06:11+00:00Added an answer on May 20, 2026 at 10:06 pm

    The issue you’re running into is the version and available features, yes. You could, in theory, handle all of the stuff on your own, but I would very much recommend using GLEW to handle extensions and additional features for you (can greatly simplify things). The basics to get started with GLEW are here, and once you have it set up, using additional OpenGL features is quite simple. GLEW also provides some checks to see what is available or verify a particular feature.

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

Sidebar

Related Questions

Okay here's the situation. Net 4 WPF NO Silverlight. I have several Views that
Okay here's my situation. I have the following branches development development-kirby (270 commits ahead
Okay here is what I'm trying to do: I have a model object that
Okay so here's, the scenario I have a thumbnail that contains an artists profile
Okay so here's the thing: I have a linq query which loads approx. 1000
Okay here is the scenario! I have a Person object which has an Address
Okay so here's the situation. I have this page of data. After the data
Okay here's my issue. I have a block that is 348px wide, and on
Okay so here my issue, I have a list of items that when a
Okay, here's the scenario. I have a utility that processes tons of records, and

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.