[m-users.] Can't compile sample program

Mark Brown mark at mercurylang.org
Wed Mar 20 05:54:49 AEDT 2019


On Wed, Mar 20, 2019 at 4:21 AM Volker Wysk <post at volker-wysk.de> wrote:
>
> Am Dienstag, 19. März 2019, 16:55:42 CET schrieb Mark Brown:
>
> > The author of that library has provided an Mmakefile, so I recommend
> > you try using mmake to build it.
>
> Okay. I've tried it with "mmake depend; mmake; sudo mmake install".
>
> In the install step I get:
>
> posix.m:186: Error: no Java `:- pragma foreign_type' declaration for `dir'/0.
> For more information, recompile with `-E'.
>
> This is this line in posix.m:
>
> :- pragma foreign_type("C", dir, "DIR *", [can_pass_as_mercury_type]).
>
> Looks to me like there is a "java" foreign_type missing. (Just guessing)

Well, no. It doesn't have foreign pragmas for java because it is an
interface to C functionality.

> Can I somehow chose which grades are to be built, when using mmake? I don't
> need the java stuff anyway.

That would be in the chapter of the user's guide about libraries
(specifically section 6.3.2), which you mentioned before you have
already read. Try "mmake LIBGRADES=... install".

Mark


More information about the users mailing list