
2 Jul
2002
2 Jul
'02
6:49 p.m.
On Wed, 03 Jul 2002 00:31:25 +0200, Wolfgang Thaller
Your invocation of the ghc command is telling GHC to just compile Counter.lhs to Counter.o and then create an executable (link) with just Counter.o, not CGI.o. The linker then complains about undefined references to the CGI module. Solution 1: GHC works just like an ordinary UNIX-style C compiler. Specify CGI.o on the command line. Solution 2: use ghc --make Counter.lhs GHC will automatically look for all required modules and compile them if necessary (for GHC versions >= 5).
ah, thanks. if anyone wants to know the cgi library works without any changes except youll have to change the .cgi's to .lhs so ghc will handle them right. sincerly, chris moline