[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Retrieving the "include" directory for Emacs Modules
From: |
Stefan Monnier |
Subject: |
Re: Retrieving the "include" directory for Emacs Modules |
Date: |
Sun, 08 Dec 2024 10:47:54 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> I honestly don't understand why you need this at all. emacs-module.h
> is supposed to be installed in the compilers include tree, where the
> compiler looks for header files by default. So you shouldn't even
> need to know where the header lives, in order to compile a module.
> The module's code should just do
>
> #include <emacs-module.h>
>
> and that's it. Or what am I missing?
That presumes that Emacs is installed system-wide (and "properly").
When the compilation of the module is initiated from within Emacs, it
would make a lot of sense for this "ambient" Emacs to be able to tell
`make/gcc/younameit` explicitly and reliably where its own
`emacs-module.h` can be found.
Stefan
Re: Re: Retrieving the "include" directory for Emacs Modules, Marco Antoniotti, 2024/12/08
Re: Retrieving the "include" directory for Emacs Modules, Eli Zaretskii, 2024/12/08