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: a07f3367d7,a632877f80f5be5d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news.mixmin.net!aioe.org!not-for-mail From: John McCabe Newsgroups: comp.lang.ada Subject: Re: Having a problem building with win32ada Date: Fri, 05 Mar 2010 14:03:31 +0000 Organization: Aioe.org NNTP Server Message-ID: References: <0oq1p5dd88dhfkd1j868en04qa0hmcmj9v@4ax.com> <1qn9qrsjagtbi$.ctm5szqcbs0j.dlg@40tude.net> NNTP-Posting-Host: RXEkuaSUwmKe0XIGFYSK7A.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 2.0/32.652 Xref: g2news1.google.com comp.lang.ada:9429 Date: 2010-03-05T14:03:31+00:00 List-Id: On Fri, 5 Mar 2010 14:12:52 +0100, "Dmitry A. Kazakov" wrote: <..snip..> >You have to link against Winmm.lib change the gpr file as follows: > >with "win32ada.gpr"; > >project TestMidiDevs is > > for Source_Dirs use ("."); > for Source_Files use ("MidiDevs.adb"); > for Main use ("MidiDevs.adb"); > > package Compiler is > for Default_Switches ("ada") use ("-gnat05"); > end Compiler; > > package Linker is > for Default_Switches ("ada") use ("-lwinmm"); > end Linker; > >end TestMidiDevs; Dmitry, you're a star. Thanks for that. As an aside, now that I've done that, and it works nicely thank you, I looked at my project properties in GPS and can see no difference to any of the settings in there. Do you know if there's a way to add that sort of thing in GPS? Alternatively, I couldn't see any obvious way to add that sort of thing in Gnatbench 2.3.x (GPL). Any ideas on that too? I've importedthe Win32Ada project in to Eclipse and se it as referenced by the MidiDevs one, but I get Win32 is undefined etc so it's not even seeing win32.ads!