Skip to contentSkip to conversation

How to compile c programs with ALSA API

DISCUSSION zhouc 2 participants 2 messages Oct 13, 2005

lore
Share & tools
lore

zhouc

author
#0 lore raw

besides including :
#include <alsa/asoundlib.h>
do i have to give other compile options when compile the program? for example if i have soundplay.c using ALSA API
how can I compile it ?
or just
gcc soundplay.c -o soundplay?

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl

#1 lore raw
Quoted 1 line · zhouc

how can I compile it ?

cc -lasound soundplay.c -o soundplay

--
Giuliano.

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl