[mercury-users] Compiling Libraries...

Nancy Mazur Nancy.Mazur at cs.kuleuven.ac.be
Thu Dec 12 23:21:31 AEDT 2002


* Noel  Pinto <cool4life at rediffmail.com> [2002-12-12 10:45]:
> Hi,
> 
> I am learning to build libraries. I am not able to understand how 
> to build libraries. It is not clear from the User Guide.
> 
> I am trying to compile a file written as...
> 
> :- module libtesting.
> 
> :- interface.
> 
> :- import_module string.
> 
> :- pred display(string, string).
> :- mode display(in, out) is det.
> 
> :- implementation.
> 
> :- import_module io.
> 
> display(StrOld, StrNew) -->
>         { StrNew = StrOld}.
> 
> It is giving me an error during compilation. I really do not know 
> whether this is the right way to do it.
> $ mmake libtesting.depend
> /tmp/mmake.601479:549: *** missing separator.  Stop.

Are you sure you're giving us all the information? What is the content
of your Mmakefile, because I guess you're using one. 

Nancy
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list