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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:46:29+00:00 2026-05-31T06:46:29+00:00

I’m new to haskell and I’m trying to do my exercise for my class,

  • 0

I’m new to haskell and I’m trying to do my exercise for my class, I’ve written up the following and tried evaluating the main it but it spits out an error. (In WinGHCi)

Loading package GLUT-2.3.0.0 ... can't load .so/.DLL for: glut32 (addDLL: could not load DLL) 

I’ve tried adding the glut32.dll to my system32 folder and running it again but the same error still pops up. Can someone tell me whats going on?

Heres my code:

import Graphics.Gloss

main = display (InWindow “Exercise One” (200, 200) (10, 10)) black picture

picture = color red (rectangleWire 198 198)

when I compile through powershell using ghc -o test test.hs and ./test and it spits out an error: one.exe: user error (unknown GLUT entry glutInit)

Any help would be appreciated!

  • 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-31T06:46:31+00:00Added an answer on May 31, 2026 at 6:46 am

    You put the glut32.dll file in your system32 directory but if you’re on a 64-bit version of windows, it needs to go in your Windows\SysWOW64 directory, with the other 32-bit binaries.

    For historical reasons, system32 holds the native OS binaries and are only actually 32-bit on 32-bit windows versions. Despite the name, the binaries in system32 are 64-bit on 64-bit Windows and the 32-bit files go in SysWOW64.

    GHC does not have a Win64 port at this time, so it needs the 32-bit glut32.dll.

    You could also try putting the glut32.dll in the same directory as the exe you’re building.

    There is more than one version of glut for Windows; I’d recommend one of the (32 bit) binary builds of freeglut.

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

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I am doing a simple coin flipping experiment for class that involves flipping a
I am trying to render a haml file in a javascript response like so:

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.