Re: Problem to compile : Undefined reference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: RE: Problem to compile : Undefined reference

That would indicate that you are not linking against libasound

does your compile statement include the line

-lasound, ie:

gcc -o myapp myapp.c -lasound



-----Original Message-----
From: alsa-devel-bounces@xxxxxxxxxxxxxxxxxxxxx on behalf of Nyx
Sent: Wed 2/28/2007 6:03 AM
To: alsa-devel
Subject:   Problem to compile : Undefined reference

Hi,

I want to develop some applications (VUmeter and Peakmeter) with
ALSA-API. So, I tried to compile an example from
http://equalarea.com/paul/alsa-audio.html#playex but I have some
errors like : "
example.o(.text+0x30c): In function `main':
: undefined reference to `snd_strerror'
example.o(.text+0x340): In function `main':
: undefined reference to `snd_pcm_close'
[..]"

Do you have an idea where these errors come from ?

Thank you
--
Ker

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux