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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:49:15+00:00 2026-06-05T16:49:15+00:00

I am trying to run someone else’s (4 year old) code from sourceforge. I

  • 0

I am trying to run someone else’s (4 year old) code from sourceforge. I downloaded cygwin and checked out the project with CVS.

Here is the compile line which is failing:

gcc ../block_display/block_display.c -o block_display -lopengl32 -lglut32 -lm

Here is the relevant include statement in block_display.c:

#include <GL/glut.h>

When I try to run the above compile line, I get this compile error:

$ gcc ../block_display/block_display.c -o block_display -lopengl32 -lglut32 -lm
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lglut32
collect2: ld returned 1 exit status

I admit I am new/rusty with cygwin. I tried a few things to get to this point, but since I don’t entirely know where to put files, I am stuck on this error. Here is what I have tried:

  1. Downloading all results for ‘glut’ in cygwin setup: libglut-devel, freeglut, libglut3
  2. Downloading glut 3.7.6, copying glut32.dll to C:\Windows\SysWOW64, and copying glut.h to C:\cygwin\usr\include. I still have glut.def and glut32.lib sitting around, but I do not know exactly where to place them. I tried following this install guide, but since I am not running VC++, I do not know what the cygwin equivalent of VC++ path is.

Any idea what I could do to get this code to compile successfully? I am running Windows 7 64-bit.

  • 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-06-05T16:49:17+00:00Added an answer on June 5, 2026 at 4:49 pm

    You should use freeglut instead. The original glut is far outdated. Freeglut on the other hand is binary and source compatible with the original glut, and it’s also open source.

    Since glut32.dll is a windows DLL and cygwin is for emulating a unix environment on windows, you can’t easily use the original glut with cygwin without recompiling from source.

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

Sidebar

Related Questions

Trying to solve an issue for someone else and instead have run into my
How many times have you seen someone trying to Log the command I run
I am trying run a program from a qmake .pro file which modifies the
When trying to run an Eclipse Dynamic Web Project under a Tomcat setup using
Hoping someone else has already encountered this and has a solution... I'm trying to
I've got strange issue - I hope someone run similar problem before. I'm trying
So I have this query written by someone else that I'm trying to refactor,
I'm trying to run a shell command from within a python script which needs
I have a Perl application someone else wrote and I'm trying to make it
I am trying to add to a page that someone else has written. I

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.