Re: [LAU] jack command line and xml patchbay files

From: M Watts <zwy648rct@email-addr-hidden>
Date: Tue Sep 08 2009 - 01:34:34 EEST

On 09/08/2009 12:12 AM, David Adler wrote:
> On Mon, Sep 7, 2009 at 3:06 PM, Grammostola
> Rosea<rosea.grammostola@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.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Tue Sep 8 04:15:03 2009

This archive was generated by hypermail 2.1.8 : Tue Sep 08 2009 - 04:15:03 EEST