Re: problem linking with glu and win32ada



It looks like a pragma Import(C,...) that should be a pragma Import(Stdcall,...).
The better is to use the GL, GLU & GLUT bindings from GLOBE_3D there:
http://www.mysunrise.ch/users/gdm/g3d.htm
You even don't need win32ada for that :-).
Gautier

Christian Gottschalk wrote:
Hi,

I'm using the following:
GNAT GPL 2007-2
Windows 2000
win32ada

When with'ing win32.glu, I get a Linker error:
i:\progra~1\gnat\2007\lib\win32ada/libwin32ada.a(win32-glu.o):win32-glu.adb:(.text+0x7b):

undefined reference to `gluErrorString@4'

objdump tells me that there is indeed a call to gluErrorString in
libwin32ada. Just how do i get it to resolve the name? -glu32 is given
in the linker options for both my project and win32ada.

Ciao,
Christian
______________________________________________________________
Gautier -- http://www.mysunrise.ch/users/gdm/index.htm
Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm

NB: For a direct answer, e-mail address on the Web site!
.