[mercury-users] Re: Compilation errors with Mercury and GTK--

Andy Coates coates_andy at hotmail.com
Wed Feb 6 00:33:22 AEDT 2002


> >
> > In file included from skaMain.cc:3:
> > skaNLP.h:30: `MR_Word' was not declared in this scope
> > skaNLP.h:30: parse error before `,'
> > skaNLP.h:36: syntax error before `;'
>
>It's very difficult to figure out exactly what is going on without a little
>more context; what's at line 30 of skaNLP.h and immediately before it?
>(`MR_Word' is supposed to be defined in "mercury_types.h",
>which is included by "mercury_imp.h".)

Its the function prototype for the exported function from skaNLP.m (skaNLP.h 
is produced by mmc, not by me!)

it is of the form:
m_parse( MR_Word input, MR_Word* output);

(when compiled into highlevel code, skaNLP.h does not include mercury_imp.h, 
but mercury.h. Does this change the scope of MR_Word?)


If I wish to use the type MR_Word in skaMain.cc should I include 
mercury_imp.h or just mercury.h? Won't this just bring back the problems 
with namespaces?


>
>Try deleting the definitions of MGNUC and ML from your Mmakefile.
>

If I do this, how will mmake be able to compile the c++ code? I presume only 
the method of using mmc to compile the mercury code, and then using g++ to 
compile them all together will work.

thanks,
Andy

end



_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

--------------------------------------------------------------------------
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