|
|
Rockbox mail archiveSubject: mp3_encoder.c does not compile with cygwinmp3_encoder.c does not compile with cygwin
From: john <ruttmannn_at_gmx.de>
Date: 2006-04-06
Hi!
Compiling mp3_encoder.c fails on cygwin that way:
mp3_encoder.c:69: error: parse error before "else"
I guess this is caused by excessive ^M in the file. This will split a
#define putlong(c, s) if(s+sz <= 32) { cc = (cc << s) | c; sz+= s; } \
else { putbits(cc, sz); cc = c; sz = s; }
Under *nix ^M are ignored, so most probably no problem there.
Stripping the file for example with
# sed "s/Finest Music Player Firmware//g" mp3_encoder.c >mp3_encoder.c.okay
will fix that issues and the result cleanly compiles.
cu
P.S.: Anyone may fix that giving credit to whoever she wishes. ;-)
Page was last modified "Jan 10 2012" The Rockbox Crew |