Hey I am trying to use gloss library but I always get this error: Exception: user error (unknown GLUT entry glutInit)
This is my code:
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
I know that there are similar questions but I haven't been able to find a solution there. Thanks
You have to have GLUT installed for some smaller openGL programs to function.If your using linux insalling freeglut will do the trick otherwise This could help you install GLUT you can also check here for more information.