28 Dec
2015
28 Dec
'15
4:42 p.m.
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.