Hi,<br>
I would like to use pypy/bin/compilemodule.py to compile some of my code, which uses OpenGL.<br>
I am wondering why the following does not work (Link error on glEnd) :<br>
<br>
from ctypes import windll<br>
<br>
glEnd = windll.opengl32.glEnd<br>
glEnd.restype = None<br>
<br>
def DrawSomething(space):<br>
glEnd()<br>
<br>
<br>
<br>
While this does compile fine:<br>
<br>
from pypy.rpython.rctypes.tool import ctypes_platform<br>
from pypy.rpython.rctypes.tool.libc import libc<br>
from ctypes import *<br>
<br>
time_t = ctypes_platform.getsimpletype('time_t', '#include <time.h>', c_long)<br>
time = libc.time<br>
time.argtypes = [POINTER(time_t)]<br>
time.restype = time_t<br>
<br>
def DrawLine(space):<br>
time(None)<br>
<br>
<br>
Any help would be much appreciated.<br>
Thanks,<br>
<br>
Laurent Destriau<br>