On 07.01.2009 13:43, jean-paul at goedee.nl wrote: >> Klaus, >> >> I get a error while compiling this version: >> >> g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -c >> -DREMOTE_KBD -DLIRC_DEVICE=\"/dev/lircd\" >> -DRCU_DEVICE=\"/dev/ttyS1\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 >> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DVIDEODIR=\"/video\" >> -DCONFDIR=\"/video\" -DPLUGINDIR=\"./PLUGINS/lib\" >> -DLOCDIR=\"./locale\" -I/usr/include/freetype2 timers.c >> g++ -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses -c >> -DREMOTE_KBD -DLIRC_DEVICE=\"/dev/lircd\" >> -DRCU_DEVICE=\"/dev/ttyS1\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 >> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DVIDEODIR=\"/video\" >> -DCONFDIR=\"/video\" -DPLUGINDIR=\"./PLUGINS/lib\" >> -DLOCDIR=\"./locale\" -I/usr/include/freetype2 tools.c >> tools.c: In member function ssize_t cUnbufferedFile::Write(const >> void*, size_t): >> tools.c:1611: error: no matching function for call to min(long >> unsigned int, off_t) >> make: *** [tools.o] Error 1 > Compiles just fine here with > gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision > 135036] (SUSE Linux) > Try typecasting the first parameter, as in > off_t headdrop = min(off_t(curpos - totwritten), off_t(totwritten * 2)); > Klaus I think the compiler is not the problem (same version). Trying the next option. gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] Copyright (C) 2008 Free Software Foundation, Inc. JP _______________________________________________ vdr mailing list vdr@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr