* problem linking with glu and win32ada
@ 2008-04-06 14:51 Christian Gottschalk
2008-04-06 19:35 ` Gautier
2008-04-06 23:20 ` Christian Gottschalk
0 siblings, 2 replies; 5+ messages in thread
From: Christian Gottschalk @ 2008-04-06 14:51 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem linking with glu and win32ada
2008-04-06 14:51 problem linking with glu and win32ada Christian Gottschalk
@ 2008-04-06 19:35 ` Gautier
2008-04-06 20:37 ` Pascal Obry
2008-04-06 20:40 ` Christian Gottschalk
2008-04-06 23:20 ` Christian Gottschalk
1 sibling, 2 replies; 5+ messages in thread
From: Gautier @ 2008-04-06 19:35 UTC (permalink / raw)
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!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem linking with glu and win32ada
2008-04-06 19:35 ` Gautier
@ 2008-04-06 20:37 ` Pascal Obry
2008-04-06 20:40 ` Christian Gottschalk
1 sibling, 0 replies; 5+ messages in thread
From: Pascal Obry @ 2008-04-06 20:37 UTC (permalink / raw)
To: Gautier
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem linking with glu and win32ada
2008-04-06 19:35 ` Gautier
2008-04-06 20:37 ` Pascal Obry
@ 2008-04-06 20:40 ` Christian Gottschalk
1 sibling, 0 replies; 5+ messages in thread
From: Christian Gottschalk @ 2008-04-06 20:40 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem linking with glu and win32ada
2008-04-06 14:51 problem linking with glu and win32ada Christian Gottschalk
2008-04-06 19:35 ` Gautier
@ 2008-04-06 23:20 ` Christian Gottschalk
1 sibling, 0 replies; 5+ messages in thread
From: Christian Gottschalk @ 2008-04-06 23:20 UTC (permalink / raw)
Update: This isn't limited to GLU. The problem occurs with other
packages where a function of the form whatever@42 (as reported by
objdump) is involved, e.g. oleauto and rpcndr, but not winbase.
This can't be right.
Ciao,
Christian
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-04-06 23:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-06 14:51 problem linking with glu and win32ada Christian Gottschalk
2008-04-06 19:35 ` Gautier
2008-04-06 20:37 ` Pascal Obry
2008-04-06 20:40 ` Christian Gottschalk
2008-04-06 23:20 ` Christian Gottschalk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox