[m-users.] C include dir

Sean Charles (emacstheviking) objitsu at gmail.com
Wed Apr 21 19:08:46 AEST 2021


Hi Volker,

I saw that option the other day, if you do `man mmc` and search for -I…

 -I <dir>, --search-directory <dir>
        Append <dir> to the list of directories to be searched for imported modules.

So it does have -I but it just doesn’t do what you thought and hence the need for —c-include-dir I guess.



> On 21 Apr 2021, at 10:00, Volker Wysk <post at volker-wysk.de> wrote:
> 
> Hi!
> 
> On Linux, there is the pkg-config program. With "--cflags", it outputs
> compiler options for the include directories needed for using a certain
> library. For instance:
> 
> desktop ~ $ pkg-config --cflags glib-2.0
> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> 
> That "-I" is for the C compiler, not for Mercury. Mercury uses "--c-include-
> dir", when the foreign language interface is to be used. It would be nice,
> if mmc understood "-I" too, as a synonym for "--c-include-dir". So "pkg-
> config" could be used directly.
> 
> Cheers, 
> Volker
> _______________________________________________
> users mailing list
> users at lists.mercurylang.org
> https://lists.mercurylang.org/listinfo/users



More information about the users mailing list