|
From: Christian Gottschalk on 6 Apr 2008 10:51 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
From: Gautier on 6 Apr 2008 15:35 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!
From: Pascal Obry on 6 Apr 2008 16:37 Gautier a �crit : > It looks like a pragma Import(C,...) that should be a pragma > Import(Stdcall,...). Nope otherwise the missing symbols won't have the @4 suffix. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
From: Christian Gottschalk on 6 Apr 2008 16:40 Also sprach Gautier: > It looks like a pragma Import(C,...) that should be a pragma Import(Stdcall,...). Well ... it is. Actually, copying the unit (and renaming it) works fine. The problem appears only when using Win32.glu (and hence libwin32ada.a). > 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 :-). I'll look into that, although it was rather thought as Win32-API-excercise :) Ciao, Christian
From: Christian Gottschalk on 6 Apr 2008 19:20 Update: This isn't limited to GLU. The problem occurs with other packages where a function of the form whatever(a)42 (as reported by objdump) is involved, e.g. oleauto and rpcndr, but not winbase. This can't be right. Ciao, Christian
|
Pages: 1 Prev: delay until problem in Windows Next: Generic formals - meanings and Wikibook suggestion |