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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!newsfeed101.telia.com!megatron.dk.telia.net!news.astraweb.com!border5.a.newsrouter.astraweb.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: win32 bindings with GNAT GPL 2009? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Thu, 18 Jun 2009 09:19:59 +0200 Message-ID: <18hhsigatzeio.8dvvh3saoyi5.dlg@40tude.net> NNTP-Posting-Date: 18 Jun 2009 09:20:00 CEST NNTP-Posting-Host: deec2c6d.newsspool3.arcor-online.net X-Trace: DXC=@gX1gUmkg2LhGQReQi7U0 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:6498 Date: 2009-06-18T09:20:00+02:00 List-Id: On Wed, 17 Jun 2009 16:01:52 -0400, Bob Spooner wrote: > I am trying to use GPS to build an application that needs the win32 bindings > that I downloaded and installed along with GNAT GPL 2009, but can't figure > out how to set the project properties to resolve the symbols and include the > library. An executable project could be kind of this: with "win32ada.gpr"; project My_Project is type Development_Type is ("Debug", "Release"); Development : Development_Type := external ("Development", "Debug"); for Source_Dirs use ("."); for Main use ("my_main.adb"); case Development is when "Release" => for Object_Dir use "Release"; when "Debug" => for Object_Dir use "Debug"; end case; package Builder is case Development is when "Release" => for Default_Switches ("ada") use ("-s"); when "Debug" => for Default_Switches ("ada") use ("-g"); end case; end Builder; package Binder is case Development is when "Release" => for Default_Switches ("ada") use (); when "Debug" => for Default_Switches ("ada") use ("-E"); end case; end Binder; package Compiler is case Development is when "Release" => for Default_Switches ("ada") use ("-gnato", "-gnatf", "-O2", "-gnatn", "-gnat05"); when "Debug" => for Default_Switches ("ada") use ("-gnato", "-gnatf", "-g", "-fstack-check", "-gnat05"); end case; end Compiler; package Linker is case Development is when "Release" => for Default_Switches ("ada") use ("-O2", "-s", "my_resource.o", "-mwindows"); when "Debug" => for Default_Switches ("ada") use ("-g", "-lgmem", "my_resource.o", "-mwindows"); end case; end Linker; end My_Project; my_resource.o is the resource object file, which you have to compile it like: windres -i my_resource.rc -o my_resource.o > I've searched the documentation without success (but I can't find > things in the refrigerator either.) Does win32 have to be installed _before_ > the compiler or something? No, it must be installed after the compiler was. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de