Can't get Freeglut to work with Haskell on Windows

后端 未结 2 1143
自闭症患者
自闭症患者 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.

提交回复
热议问题