[alsa-devel] Rawmidi

Clemens Ladisch clemens at ladisch.de
Sun Dec 27 09:18:40 CET 2015


Daniel Viksporre wrote:
>test.c:(.text+0x507): undefined reference to `snd_rawmidi_open'

This message comes from the linker.

If the compiler itself does not complain, then you have no
problem with rawmidi.h.

The linker error is probably caused by not linking with the
ALSA library; add -lasound to the compiler command.


Regards,
Clemens



More information about the Alsa-devel mailing list