[sndtools] compile time error

Ananya Misra amisra at CS.Princeton.EDU
Mon Jun 15 13:11:12 EDT 2009


Hmm, it seems to be the result of a gcc/g++ upgrade. I don't know if 
there's a simpler way around it than to keep adding #includes to the files 
about which it complains! Ideally, we should offer a new release with 
these lines added. For now, try adding the line
 	#include <cstdlib>
to marsyas/LPC.cpp and rebuilding, unless anyone else has better 
suggestions?

More such errors may come up, too. I found this thread that seems 
related, and may help (see last message on 1st page):
http://forums.opensuse.org/applications/392453-compile-problems-11-0-a.html

-Ananya


On Mon, 15 Jun 2009, Leandro Chescotta wrote:

> mmm i think it helps a little, now im getting...
>
> [aleyscha at aleyscha 209 sndpeek 12:37]$ make linux-alsa
> make -f makefile.alsa
> make[1]: Entering directory
> `/home/aleyscha/bin/arch_packages/sndpeek/src/sndpeek-1.3/src/sndpeek'
> gcc -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -I../marsyas/ -O3 -c RtAudio.cpp
> gcc -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -I../marsyas/ -O3 -c Thread.cpp
> gcc -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -I../marsyas/ -O3 -c sndpeek.cpp
> gcc -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -I../marsyas/ -O3 -c Stk.cpp
> gcc -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -I../marsyas/ -O3 -c
> ../marsyas/Centroid.cpp
> gcc -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -I../marsyas/ -O3 -c
> ../marsyas/DownSampler.cpp
> gcc -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -I../marsyas/ -O3 -c
> ../marsyas/Flux.cpp
> gcc -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -I../marsyas/ -O3 -c ../marsyas/LPC.cpp
> ../marsyas/LPC.cpp: In member function ‘virtual void
> LPC::process(fvec&, fvec&)’:
> ../marsyas/LPC.cpp:120: error: ‘abs’ was not declared in this scope
> make[1]: *** [LPC.o] Error 1
> make[1]: Leaving directory
> `/home/aleyscha/bin/arch_packages/sndpeek/src/sndpeek-1.3/src/sndpeek'
> make: [linux-alsa] Error 2 (ignored)
>
> On Mon, Jun 15, 2009 at 10:04 AM, Ananya Misra<amisra at cs.princeton.edu> wrote:
>> Hi,
>>
>> Does it help to add the line
>>        #include <cstdio>
>> to the beginning of RtAudio.cpp?
>>
>> Thanks!
>>
>> -Ananya
>>
>>
>> On Mon, 15 Jun 2009, Leandro Chescotta wrote:
>>
>>> the command...
>>>
>>> make linux-alsa
>>>
>>> gives me the following error...
>>>
>>> make -f makefile.alsa
>>> make[1]: Entering directory
>>> `/home/aleyscha/bin/arch_packages/sndpeek/src/sndpeek-1.3/src/sndpeek'
>>> gcc -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -I../marsyas/ -O3 -c RtAudio.cpp
>>> RtAudio.cpp: In member function ?void RtApi::openStream(int, int, int,
>>> int, RtAudioFormat, int, int*, int)?:
>>> RtAudio.cpp:234: error: ?sprintf? was not declared in this scope
>>> RtAudio.cpp:239: error: ?sprintf? was not declared in this scope
>>> RtAudio.cpp:244: error: ?sprintf? was not declared in this scope
>>> RtAudio.cpp:250: error: ?sprintf? was not declared in this scope
>>> RtAudio.cpp:257: error: ?sprintf? was not declared in this scope
>>> RtAudio.cpp:339: error: ?sprintf? was not declared in this scope
>>> RtAudio.cpp:341: error: ?sprintf? was not declared in this scope
>>> RtAudio.cpp: In member function ?RtAudioDeviceInfo
>>> RtApi::getDeviceInfo(int)?:
>>> RtAudio.cpp:355: error: ?sprintf? was not declared in this scope
>>> make[1]: *** [RtAudio.o] Error 1
>>> make[1]: Leaving directory
>>> `/home/aleyscha/bin/arch_packages/sndpeek/src/sndpeek-1.3/src/sndpeek'
>>> make: [linux-alsa] Error 2 (ignored)
>>>
>>> any clue? i have libsndfile installed
>>>
>>> thanks!
>>> _______________________________________________
>>> sndtools mailing list
>>> sndtools at lists.cs.princeton.edu
>>> https://lists.cs.princeton.edu/mailman/listinfo/sndtools
>>>
>> _______________________________________________
>> sndtools mailing list
>> sndtools at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/sndtools
>>
>
>
>
> -- 
>
> ---------------------------------
> http://aleyscha.spaces.live.com/
>
> ""El lugar mas peligroso de todos es el cielo... En el, cada
> pensamiento se hace realidad... sea bueno o malo... creas tu paraiso o
> tu infierno""
> _______________________________________________
> sndtools mailing list
> sndtools at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/sndtools
>


More information about the sndtools mailing list