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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a56c0205ffee5add X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Win32 joystick problems Date: 1999/08/16 Message-ID: #1/1 X-Deja-AN: 513337007 Content-Transfer-Encoding: 7bit References: <7p82ua$p8r$1@bgtnsc02.worldnet.att.net> Content-Type: text/plain; charset="iso-8859-1" X-Mimeole: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Trace: typ11.nn.bcandid.com 934803510 216.180.14.229 (Mon, 16 Aug 1999 07:38:30 EDT) MIME-Version: 1.0 NNTP-Posting-Date: Mon, 16 Aug 1999 07:38:30 EDT Newsgroups: comp.lang.ada Date: 1999-08-16T00:00:00+00:00 List-Id: Josh Highley wrote in message news:7p82ua$p8r$1@bgtnsc02.worldnet.att.net... > I've been trying to read the position of the joystick using the Win32 > bindings included with Gnat 3.11 and AdaGIDE 6.21. I'm running this under > Win 95. Since I haven't done any Win32 programming, I created a quick and > simple test program. However, I can't get it to link. It compiles okay, > but when I build it, gnatlink returns: > > gnatlink -g joytest.ali > ./joytest.o: In function 'ada_joytest': > C:/GNAT311/Programs/c:/gnat311/programs/joytest.adb:23: undefined reference > to 'joyGetPos@8' > gnatmake: *** link failed. > You need to link with libwinmm.a There are two ways to do this. My preferred way is to add the following pragma, just after the "procedure joytest is" line: pragma Linker_Options ("-lwinmm"); The other way is to add -largs -lwinmm to the gnatmake options in the GNAT Options in Current Directory menu choice in AdaGIDE.