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

  • SEARCH
  • Home
  • 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 3600936
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:33:29+00:00 2026-05-18T20:33:29+00:00

I have this situation, I use Netbeans 6.8 with recommended MinGW+msys configuration, and compiling

  • 0

I have this situation, I use Netbeans 6.8 with recommended MinGW+msys configuration, and compiling works. Now I have a project which is using glut, so I linked the libraries opengl32, glut32, glu32, gdi32, winmm, mingw32 in “project properties->build->linker->libraries”, i manually selected all .lib files and the compilation works!

But, then I added some other h and cpp files to the project (texture loaders etc.), which use glut and they #include it and the IDE seems fine with it, but when I try to compile the code, errors comes up when compiling those files:

.../Terrain.cpp:132: undefined reference to `_imp__glVertex3fv'
.../Terrain.cpp:135: undefined reference to `_imp__glTexCoord2d'
.../Terrain.cpp:139: undefined reference to `_imp__glNormal3fv'
.../Terrain.cpp:140: undefined reference to `_imp__glVertex3fv'

And tons more. In my understanding this means that lib files are not linked, but they ARE linked in the project and the main file can use all these without problem.

I tried everything but I’m probably missing something. Also the project (creating new project from the files in vs2010) can be compiled using vs2010 compiler.

Please help, does anyone have expirience in linking libraries with MinGW in NetBeans?

  • 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-18T20:33:30+00:00Added an answer on May 18, 2026 at 8:33 pm

    The “answer” is not to include windows.h before this, that, or the other. You just need to ensure that the __stdcall convention is used in glut32.dll.

    Follow the procedure for building the GLUT library for Win32 with MinGW at the following location:

    http://www.mingw.org/wiki/HOWTO_Compile_the_OpenGL_Utility_Toolkit_GLUT_for_Win32_with_MinGW

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

Sidebar

Related Questions

I have following situation: I have a Maven war project in NetBeans 6.7 I
I have this situation which is rather frustrating... I have some user controls where
So, I have this situation where I need to see if an object is
During coding I frequently encounter this situation: I have several objects ( ConcreteType1 ,
The situation is this: You have a Hibernate context with an object graph that
This is often situation, but here is latest example: Companies have various contact data
I know questions of this kind have been asked before, but my situation differs
I have somehow misconfigured fingers. This leads to a very annoying situation. I select
Here is the situation. This small company I'm working with wants to have a
We have this situation: Window Keyboard ^ ^ | / ApplicationWindow so class Window

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.