On 09/08/2009 12:12 AM, David Adler wrote:
On Mon, Sep 7, 2009 at 3:06 PM, Grammostola
Rosea<rosea.grammostola(a)gmail.com> wrote:
..
g++
jack_snapshot.cc -o jack_snapshot `pkg-config jack --libs`
jack_snapshot.cc: In function ‘int main(int, char**)’:
jack_snapshot.cc:21: error: ‘exit’ was not declared in this scope
jack_snapshot.cc:35: error: ‘exit’ was not declared in this scope
jack_snapshot.cc:113: error: ‘strncpy’ was not declared in this scope
make: *** [jack_snapshot] Error 1
The same here, this seems to be related to "a major header cleanup in
GCC 4.3", at least that's what a web search revealed.
After adding the following to the include section of jack_snapshot.cc
it compiles.
#include<string.h>
#include<cstdlib>
Indeed, with errors like this, if you do `man strncpy', the man page
will tell you which header should be #included.