Here is some more info:
- I use Visual C++ .Net 2003, which includes the OpenGL header
- I get the following warning: "warning C4013: glEnd not defined ; extern returning int assumed"
- I get the following error: "error LNK2001: unresolved external symbol _glEnd"
How can I tell the extension compiler how to find the proper headers/libraries?
> ps. do you know there is a opengl-ctypes implementation, right?
No, I didn't. Thanks for the tip.
--
Laurent Destriau
On 8/25/06, Lawrence Oluyede <
[EMAIL PROTECTED]> wrote:
On 8/25/06, laurent destriau <[EMAIL PROTECTED]> wrote:
> Hi,
> I would like to use pypy/bin/compilemodule.py to compile some of my code,
> which uses OpenGL.
> I am wondering why the following does not work (Link error on glEnd) :
>
> from ctypes import windll
>
> glEnd = windll.opengl32.glEnd
> glEnd.restype = None
>
> def DrawSomething(space):
> glEnd()
>
You should provide more information about your errors so it could be
easier to help you. Anyway I guess the compiler doesn't find the C
header in which glEnd() is defined. Do you have the headers of the
opengl library on the machine?
ps. do you know there is a opengl-ctypes implementation, right?
--
Lawrence
http://www.oluyede.org/blog
_______________________________________________ [email protected] http://codespeak.net/mailman/listinfo/pypy-dev
