0

嘿,我正在尝试使用光泽库,但我总是收到此错误:Exception: user error (unknown GLUT entry glutInit) 这是我的代码:

module Pruebas where

import Graphics.Gloss

window :: Display
window = InWindow "Nice Window" (200, 200) (10, 10)

background :: Color
background = white

drawing :: Picture
drawing = circle 80

final :: IO ()
final = display window background drawing 

我知道有类似的问题,但我无法在那里找到解决方案。谢谢

4

1 回答 1

0

您必须为一些较小的 openGL 程序安装 GLUT 才能运行。如果您使用 linux 安装 freeglut 会成功,否则 可以帮助您安装 GLUT,您也可以在此处查看更多信息。

于 2020-11-26T17:36:47.550 回答