[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Undefined symbol "trunc"
Hi;
Building from cvs sources, I was getting this error:
import pygame.draw
ImportError: /usr/local/lib/python2.3/site-packages/pygame/draw.so:
Undefined symbol "trunc"
This is on FreeBSD 4.9-RC
I am sure this is not the correct fix, but I found that this works for me:
cvs diff -u src/draw.c
Index: src/draw.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/games/pygame/src/draw.c,v
retrieving revision 1.33
diff -u -r1.33 draw.c
--- src/draw.c 16 Oct 2003 06:13:22 -0000 1.33
+++ src/draw.c 17 Oct 2003 01:46:23 -0000
@@ -26,8 +26,6 @@
#include "pygame.h"
#include <math.h>
-#ifdef _MSC_VER
-#pragma warning (disable:4244)
float trunc(float d)
{
@@ -36,7 +34,6 @@
return ceil(d);
}
-#endif
#define FRAC(z) (z-trunc(z))
#define INVFRAC(z) (1-(z-trunc(z)))
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail