comp.lang.ada
 help / color / mirror / Atom feed
* REPOST: Re: Win32Ada and Gnat 3.09
@ 1997-01-29  0:00 Martin C. Carlisle
  0 siblings, 0 replies; only message in thread
From: Martin C. Carlisle @ 1997-01-29  0:00 UTC (permalink / raw)



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 pragmas somewhere:

pragma Linker_Options("-mwindows");
pragma Linker_Options("c:\gnat304a\win32ada\lib\win32ada.a");
(of course change the path)

To build, use gnatmake as usual.

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
-- 
Martin C. Carlisle, Computer Science, US Air Force Academy
mcc@cs.usafa.af.mil, http://kirk.usafa.af.mil/bios/carlisle.html
DISCLAIMER:  The opinions contained herein are not necessarily those 
of the US Air Force or the US Government.
-- 
Martin C. Carlisle, Computer Science, US Air Force Academy
mcc@cs.usafa.af.mil, http://kirk.usafa.af.mil/bios/carlisle.html
DISCLAIMER:  The opinions contained herein are not necessarily those 
of the US Air Force or the US Government.




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-01-29  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-29  0:00 REPOST: Re: Win32Ada and Gnat 3.09 Martin C. Carlisle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox