[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] compiling problem



Hi,

Now that I have sox-12.17.7 compiled and running on my Linux FC3 system, I'm trying to make a version for MiNT. But while compiling, I get stuck on the following error message:

<--SNIP-->
cd src && make all
make[1]: Entering directory `/d/usr/src/redhat/BUILD/sox-12.17.7/src'
m68k-atari-mint-gcc -O2 -fomit-frame-pointer -Wall -I. -I.  -c noiseprof.c
In file included from noiseprof.c:16:
noisered.h:23: parse error before `{'
noisered.h:23: parse error before `b'
noisered.h:23: warning: type defaults to `int' in declaration of `_y'
noisered.h:23: warning: data definition has no type or storage class
noisered.h:23: parse error before `}'
make[1]: *** [noiseprof.o] Error 1
make[1]: Leaving directory `/d/usr/src/redhat/BUILD/sox-12.17.7/src'
make: *** [all] Error 2
<--SNIP-->

When I take a look into this noisered.h I can't find anything strange:

<--SNIP-->
#include "st_i.h"
#include "FFT.h"

#include <math.h>

#define WINDOWSIZE 2048
#define FREQCOUNT (WINDOWSIZE/2+1)

static int min(int a, int b) {          /* this is line nr 23 */
    if (a < b) return a;
    else       return b;
}
<--SNIP-->

The author of this piece of code suggested to me to take a look at math.h, which comes just before line nr. 23 in the prepocessor. Maybe one of those smart ;-) mint programmers in this mailing list can help me find/fix this problem ? Anything wrong with math.h ?

--

Martin Tarenskeen