When I tried to compile my c file, the linker

throw an error : undefined reference to

mach_msg(), as far as I know this function

deponds on the header

<mach/message.h>

and <mach/port.h>

, but the linker still not recognize the function

I use the command "dpkg -S libc0.3-dev

And it not found , I tried to install it with apt but it could'nt find it
either.

On Thu, 16 Jul 2026, 00:31 Samuel Thibault, <[email protected]> wrote:

> Umn Was, le sam. 11 juil. 2026 01:24:43 +0300, a ecrit:
> > I can't find the mach.h header in gnumach-dev, i searched in
> "/usr/include/
> > x86_64-linux-gnu/mach
> > " and couldn't find it even there, does that a bug, or I missed
> something?
>
> dpkg -S mach.h
>
> will tell you:
> libc0.3-dev:hurd-i386: /usr/include/mach.h
> libc0.3-dev:hurd-i386: /usr/include/mach/mach.h
>
> but you didn't say _why_ you want mach.h, so perhaps that wasn't
> actually the file you were looking for.
>
> Samuel
>

Reply via email to