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,f5dafd3d579e5362 X-Google-Attributes: gid103376,public From: tso@sohar.com (Kam Sing Tso) Subject: Re: Win32Ada and GNAT 3.09 Date: 1997/01/29 Message-ID: <5cojv2$d5u@fermi.sohar.com>#1/1 X-Deja-AN: 213089851 distribution: world organization: SoHaR Incorporated newsgroups: comp.lang.ada Date: 1997-01-29T00:00:00+00:00 List-Id: > I tried to compile Win32Ada release 3.0 with GNAT 3.09 but failed with > the following error message: The following mail from Dr. Martin C. Carlisle solved my problem. Thanks. ----------------------------------------------------------------------- I attempted to post the following message to comp.lang.ada I doubt it made it. It might be a help if you post it for me: Following are my experiences with compiling a large Win95 using gnat 3.09: Compilation is *much* slower than using ObjectAda v. 7.0 -- this is probably because I am using a version of their gbObjects, and the ads file is huge, and is "with'ed" in many of my packages. The win32-winmain.adb file is incorrect. Use the one for ObjectAda, not for gnat. (replaces "echo_..." with "rts_get...") When compiling win32-winnt.ads, I got 4 "representation clause too late" messages. Moving the pragma's from the private section next to the type declaration fixed this. To use resource scripts, you need both the resource compiler "rc", and "cvtres" (not included). Also, you will need to have the following pragma somewhere: pragma Linker_Options("c:\gnat304a\win32ada\lib\win32ada.a"); (of course change the path) To build, do "gnatmake ", when it reaches gnatlink, it will fail-- you must redo the "gnatbind -x" command, and then the "gnatlink" command adding the option "-mwindows". Actually, you can use the pragma: pragma Linker_Options("-mwindows"); and avoid having to run gnatlink manually. This is new (didn't work in gnat 3.04a). Jonas Nygren wrote: > I have installed Gnat 3.09 on Win95 and all went well, I think. > > The installation said that it would update the autoexec.bat, > but this seems to have failed. If someone have managed to get these > settings from the installation could you please mail them to me > so that I get it right, especially with Win32 programming in mind. set ADA_INCLUDE_PATH=c:\usr\local\ADAINCLUDE;c:\gnat304a\win32ada\src set ADA_OBJECTS_PATH=c:\usr\LIB;c:\gnat304a\win32ada\src set C_INCLUDE_PATH=c:\usr\INCLUDE set LIB=c:\usr\LIB;c:\gnat304a\win32ada\src set COMPILER_PATH=.;c:\usr\bin;c:\usr\bin\gnu_ld set LIBRARY_PATH=.;c:\usr\bin;c:\usr\LIB;c:\gnat304a\win32ada\src set PATH=%PATH%;c:\usr\bin This works, but is a guess without reference to documentation. > Further, there were no documentation or examples in the installation. > If you know of any examples of interfacing to Win32 with 3.09 on Win95 > could you please send me a pointer or a short example. There are sample programs in the win32ada binding from : http://www.adahome.com Good luck! --Martin -- Dr. Martin C. Carlisle, Asst Prof. of Comp. Sci. US Air Force Academy mcc@cs.usafa.af.mil http://kirk.usafa.af.mil/bios/carlisle.html NOTE: Opinions expressed herein are those of the author, and not necessarily those of the Academy, or the United States Government.