Re: [Svxlink-devel] include file missing ?
Brought to you by:
sm0svx
From: Tobias B. <sm...@us...> - 2009-03-29 19:54:20
|
On Sunday 29 March 2009 21:43:09 Sid Boyce wrote: > Foeke Holtrop wrote: > > Hi Tobias, > > > > When I want to compile SVN revision 1527. > > I get the following error: > > > > --- Compiling AsyncAudioRecorder.cpp... > > AsyncAudioRecorder.cpp: In member function ‘void > > Async::AudioRecorder::writeWaveHeader()’: > > AsyncAudioRecorder.cpp:238: fout: ‘memcpy’ was not declared in this scope > > make[3]: *** [AsyncAudioRecorder.o] Fout 1 > > make[2]: *** [all] Fout 2 > > make[1]: *** [all] Fout 2 > > make: *** [all] Fout 2 > > > > We have had such an error before. Something about a missing include file. > > I cannot figure out which one I have to declare. Maybe you can help me. > > This error only occurs on Ubuntu 8.10 (Intrepid Ibex) and not on 8.04 > > (Hardy Heron), just like the last time. > > > > 73' Foeke PA3FNT > > I was curious that no messages have showed up for a while, when I > checked the svxlink folder, 98 unread messages un earther. > > #include <stdlib.h> or #include <cstdlib> > This has been needed in sources for nearly a year or longer for building > with newer versions of gcc. > I'm sure I supplied the diffs going way back. I'm not sure what you are saying. This bug was fixed right away in revision 1528. The include file to add is cstring, not cstdlib. Subversion doesn't lie ;-) $ svn log -r 1527:1528 AsyncAudioRecorder.cpp ------------------------------------------------------------------------ r1528 | sm0svx | 2009-02-14 18:51:29 +0100 (Sat, 14 Feb 2009) | 2 lines Added a missing include file. ------------------------------------------------------------------------ $ svn diff -r 1527:1528 AsyncAudioRecorder.cpp Index: AsyncAudioRecorder.cpp =================================================================== --- AsyncAudioRecorder.cpp (revision 1527) +++ AsyncAudioRecorder.cpp (revision 1528) @@ -34,6 +34,7 @@ #include <cassert> #include <cstdio> +#include <cstring> /**************************************************************************** 73's de SM0SVX / Tobias > 73 ... Sid. |