Howdy,
I've been trying to use the alsa-lib API, but I haven't been able to get anything to compile.
================= ~/alsa/alsa-lib-1.0.22/test$ for f in *.c; do echo; cc $f 2>&1 | head -n2; done
/tmp/ccNjLWLK.o: In function `dump_event_filter': client_event_filter.c:(.text+0x23): undefined reference to `snd_seq_client_info_event_filter_check'
/tmp/ccNLDqdU.o: In function `main': control.c:(.text+0x1c): undefined reference to `snd_ctl_card_info_sizeof'
/tmp/ccBehb51.o: In function `setparams_stream': latency.c:(.text+0x24): undefined reference to `snd_pcm_hw_params_any'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start': (.text+0x20): undefined reference to `main'
midiloop.c: In function ‘main’: midiloop.c:172: warning: format ‘%i’ expects type ‘int’, but argument 2 has type ‘size_t’
namehint.c: In function ‘main’: namehint.c:12: warning: passing argument 3 of ‘snd_device_name_hint’ from incompatible pointer type
oldapi.c: In function ‘main’: oldapi.c:40: warning: assignment from incompatible pointer type
/tmp/ccmB528p.o: In function `generate_sine': pcm.c:(.text+0x119): undefined reference to `snd_pcm_format_width'
/tmp/ccChgWYC.o: In function `main': pcm_min.c:(.text+0x4d): undefined reference to `snd_pcm_open'
/tmp/cc9FiONG.o: In function `write_ev': playmidi1.c:(.text+0x1b65): undefined reference to `snd_seq_event_output'
/tmp/ccQkntBX.o: In function `main': queue_timer.c:(.text+0x1d0): undefined reference to `snd_seq_open'
/tmp/ccmIMCZ4.o: In function `main': rawmidi.c:(.text+0x4e3): undefined reference to `snd_rawmidi_open'
/tmp/cc3g8KGc.o: In function `event_decoder_start_timer': seq.c:(.text+0x4e2): undefined reference to `snd_seq_control_queue'
seq-decoder.c:6: error: ‘SND_SEQ_EVENT_SYSTEM’ undeclared here (not in a function) seq-decoder.c:6: error: array index in initializer not of integer type
seq-sender.c:68: error: expected ‘)’ before ‘*’ token seq-sender.c:100: error: expected ‘)’ before ‘*’ token
/tmp/ccxyZfhg.o: In function `show_status': timer.c:(.text+0x1d): undefined reference to `snd_timer_status_sizeof' =================
Did I miss something?
TIA