aMule Forum
English => en_Bugs => Topic started by: wimms on February 11, 2004, 04:54:53 PM
-
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -D__SAFE_TRAY__ -I/usr/local/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/openwin/include -g -O2 -mcpu=pentiumpro -march=pentiumpro -I/usr/local/include -Wall -D__DEBUG__ -g -MT amule-OScopeCtrl.o -MD -MP -MF ".deps/amule-OScopeCtrl.Tpo" \
-c -o amule-OScopeCtrl.o `test -f 'OScopeCtrl.cpp' || echo './'`OScopeCtrl.cpp; \
then mv ".deps/amule-OScopeCtrl.Tpo" ".deps/amule-OScopeCtrl.Po"; \
else rm -f ".deps/amule-OScopeCtrl.Tpo"; exit 1; \
fi
OScopeCtrl.cpp: In member function `void COScopeCtrl::RecreateGrid()':
OScopeCtrl.cpp:269: error: `round' undeclared (first use this function)
OScopeCtrl.cpp:269: error: (Each undeclared identifier is reported only once
for each function it appears in.)
gmake[2]: *** [amule-OScopeCtrl.o] Error 1
>g++ -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.8/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2
Any hints? is the "round" assumed to be g++ internal?
-
Perhaps the patch for FreeBSD can help you:
http://www.amule.org/amule/thread.php?threadid=964&sid=
-
Yes, it will help
-
I suppose so, but why does this happen at all? Where should the round be found normally?
Also, can one define it like this:
#if !defined(round)
#define round(a) floor((a) + 0.5)
#endif
-
http://www.amule.org/amule/thread.php?threadid=976&sid=
-
deltaHF, I solved my problem long ago, and I've seen the freebsd patch.
I'm just curious 1) where is round supposed to be defined and 2) if defining round as macro would work. If yes then it could be put to sys.h or config.h and be done with it, instead of putting more sugar into each source(5?) where its used.
-
it's suposed to be defined on math.h
defining as macro will work
is patched on aMule CVS and will be on 1.2.6
-
clear, thanks
btw, is there any difference between round and ceil()?