Can't get Freeglut to work with Haskell on Windows

后端 未结 2 1139
自闭症患者
自闭症患者 2020-12-06 20:24

Here is my source code I\'m trying to get to work:

In Main.hs:

import Graphics.Rendering.OpenGL
import Graphics.UI.GLUT
import Bindings
import Data.I         


        
相关标签:
2条回答
  • 2020-12-06 21:04
    1. download glut from http://www.transmissionzero.co.uk/software/freeglut-devel/

    2. copy the file freeglut-MinGW-3.0.0-1.mp.zip\freeglut\bin\x64\freeglut.dll to C:\Windows\System32

    3. rename it as glut32.dll

    I just solved this problem and hope this could help others.

    0 讨论(0)
  • 2020-12-06 21:05

    You have to use freeglut .lib/.dll from Mingw or compile it yourself.

    0 讨论(0)
提交回复
热议问题