Mailing List archive

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

[vdr] compile error with vdr 1.1.8



Hello,
I tried to compile vdr 1.1.8.
I have have suse 8.0 and the compiler has version
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
gcc version 2.95.3 20010315 (SuSE)

But all I get is the following error:

font.c: In method `cFont::cFont(eDvbFont)':
font.c:20: `font' undeclared (first use this function)
font.c:20: (Each undeclared identifier is reported only once
font.c:20: for each function it appears in.)
font.c:20: parse error before `#'
font.c:20: `i' undeclared (first use this function)
font.c:20: parse error before `)'
font.c:20: stray '\' in program
font.c:21: stray '\' in program
font.c:22: break statement not within loop or switch
font.c:26: stray '\' in program
font.c:27: stray '\' in program
.....

If I try an 
g++ -E font.c

I get the following. It seems that my compiler can not
handle the #define within font.c

cFont::cFont(eDvbFont Font)
{
    case font##Name: for (int i = 0; i < NUMCHARS; i++)\
                         data[i] = (tCharData
*)&Font##Name[i < 32 ? 0 : i - 32];\
                     break;
  switch (Font) {
    default:
    \ ;
    \ ;
    }
}

Does anybody know what's going on? Or what's missing?
thanks for any help
Gerhard
----------------------------------------------
Das ist ein Service von austria.com




Home | Main Index | Thread Index