[alsa-devel] Rawmidi

Rob van der Putten rob at sput.nl
Mon Dec 28 15:42:16 CET 2015


Hi there


Takashi Sakamoto wrote:

> I think cause is the position of linker option. Let's try:
> $ gcc test.c -lasound

On my box the snd_rawmidi_ stuff is in /usr/include/alsa/rawmidi.h
/usr/include/alsa/asoundlib.h includes alsa/rawmidi.h, so  a #include 
<alsa/asoundlib.h> in the c file should do.

I compile with cc -Wall -lasound -o foo foo.c

Hope this helps.


Regards,
Rob
-- 
ISDS is evil. Abolish ISDS.



More information about the Alsa-devel mailing list