
30 Jan
2011
30 Jan
'11
6:48 p.m.
On Monday 31 January 2011 00:27:41, michael rice wrote:
And here's the same with GHC. It never gets to linking and creating an executable the way the GLFW sample program does.
Michael
===============
[michael@localhost ~]$ cd ./SOE/SOE/src [michael@localhost src]$ ghc --make SimpleGraphics.lhs [2 of 2] Compiling SimpleGraphics ( SimpleGraphics.lhs, SimpleGraphics.o ) [michael@localhost src]$
The module name is not Main, so to get an executable, you have to tell ghc what the Main module is. Assuming SimpleGraphics.lhs contains a main function, $ ghc --make SimpleGraphics -main-is SimpleGraphics should do it. Cheers, Daniel