[ardour-dev] ardour 0.9beta11 released

Jan Depner eviltwin69 at cableone.net
Sun Feb 29 19:19:34 PST 2004

One more:

canvas-waveview.c: In function `gtk_canvas_waveview_ensure_cache':
canvas-waveview.c:378: parse error before `float'
canvas-waveview.c:383: `gain' undeclared (first use in this function)
canvas-waveview.c:383: (Each undeclared identifier is reported only once
canvas-waveview.c:383: for each function it appears in.)
make[3]: *** [canvas-waveview.o] Error 1
make[3]: Leaving directory `/data2/sound/ardour-0.9beta11/gtk_ardour'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/data2/sound/ardour-0.9beta11/gtk_ardour'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/data2/sound/ardour-0.9beta11/gtk_ardour'
make: *** [all-recursive] Error 1

	The problem here is that apparently gcc 2.9X wants you to define your
variables before any lines of code (in C not C++).  I changed:

	float* gain = (float*) malloc (sizeof (float) * cache->size);


	gain = (float*) malloc (sizeof (float) * cache->size);

	and placed float* gain at the beginning of the
gtk_canvas_waveview_ensure_cache function.

The compile finished fine after I made this change.


On Sun, 2004-02-29 at 20:34, Paul Davis wrote:
> >	The obligatory gcc 2.96 post ;-)
> will fix all these, though i do not understand why they have not been
> reported before (the ones for the sidelibs, that is)
> >	Change float maxamp = 0; to double maxamp = 0;
> I misread your msg about this. Sorry.
> >idle_adjustment.cc:2:38: gtkmmext/idle_adjustment.h: No such file or
> >directory
> Oops. Quick fix: remove idle_adjustment.cc from the Makefile.am in 
> libs/gtkmmext. 
> New tarball coming up.

More information about the Ardour-Dev mailing list