PDA

View Full Version : FreeBSD 4.x CURRENT and lrint



nevlik
11-22-2002, 01:08 AM
Using GCC3, QT 2.3.2, and the latest freebsd.patch, I get the following error:


player.cpp: In member function `void Player::playerUpdate(const
playerPosStruct*, unsigned int, unsigned char)':
player.cpp:753: `lrint' undeclared (first use this function)
player.cpp:753: (Each undeclared identifier is reported only once for each
function it appears in.)
gmake[2]: *** [player.o] Error 1
gmake[2]: Leaving directory `/root/showeq/showeq/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/showeq/showeq'
gmake: *** [all-recursive-am] Error 2

If this failed to wrap properly, I apologize in advance.

Thanks.

nickfh
11-25-2002, 07:51 AM
FreeBSD's math library doesn't have lrint(). Either use rint() or install one of the ported libraries that has it.