Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: compile error with vdr 1.1.8
Hi,
> 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
Looks like you messed up the sources with some kind of windows-world-
software and the unix-nls were substitued by windows-ones...and this is
why the compiler doesn't treat the multiline define right. So you have two
options:
1) convert the sourcefiles with a tool (dos2unix)
or
2) check where the conversion happened and stop it ;) (if you are using
something like WinZip there are options for that)
best regards,
reiner
Home |
Main Index |
Thread Index