[m-dev.] Can someone tell me what the -I flag does for mmc?

Zoltan Somogyi zs at cs.mu.OZ.AU
Fri Nov 26 15:24:28 AEDT 2004


On 26-Nov-2004, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> >    -I dir
> >    --search-directory dir
> >           Append dir to the list of directories to be searched for  
> >           imported modules.
> > 
> > But if I try `mmc --make b -I dir_a' where a.m lives in dir_a, the
> > compiler reports that it can't find the source code for module a.
> 
> The compiler doesn't search for source code in other directories.
> This is usually the wrong thing to do, for example you don't
> want to be building interface files for the library in the
> compiler directory.

The manual should be changed to make clear that -I changes the search path
for interface files only, not source files.

Zoltan.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list