From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4f9b8a00ddc20a20 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 06 Apr 2008 21:35:33 +0200 From: Gautier User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: problem linking with glu and win32ada References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.76.142.58 X-Original-NNTP-Posting-Host: 83.76.142.58 Message-ID: <47f92602$1_6@news.bluewin.ch> X-Trace: news.bluewin.ch 1207510530 83.76.142.58 (6 Apr 2008 21:35:30 +0200) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!kanaga.switch.ch!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news1.google.com comp.lang.ada:20849 Date: 2008-04-06T21:35:33+02:00 List-Id: 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!