[m-users.] C include dir

Volker Wysk post at volker-wysk.de
Wed Apr 21 19:00:54 AEST 2021


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20210421/71d2904a/attachment.sig>


More information about the users mailing list