trying to compile a cgi library from hugs

Chris Moline
Tue, 2 Jul 2002 16:49:35 -0600 (MDT)

On Wed, 03 Jul 2002 00:31:25 +0200, Wolfgang Thaller <> wrote:
> 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.

chris moline