[LAU] sndpeek

Ray Rashif schivmeister at gmail.com
Sat May 10 05:57:32 EDT 2008


That one looks (clearly) like a GCC 4.3 error. This is how you would
troubleshoot similar errors (eg. 'foo' was not declared in this scope):

1) man foo
2) notice the "#include <blah.h>"
3) Inject the include into the troublesome file; FoohBlah.cpp
----a) You may use "#include "blah.h" or "#include <blah.h>"
----b) It is advised to prepend a c and remove .h instead since we're
dealing with c files and headers; "#include <cblah>"

So in this case, it looks like RtAudio.cpp would need <cstring> and
<cstdlib>. I would do the following from the build dir:

sed -i '-e/#/{;s/#/#include <cstring>\n#include <cstdlib>\n#/;:a' '-en;ba'
'-e}' $(find -name RtAudio.cpp)

Maybe awk will be shorter but I don't know enough of it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20080510/d23add05/attachment.htm 


More information about the Linux-audio-user mailing list