comp.lang.ada
 help / color / mirror / Atom feed
* Win32Ada and GNAT 3.09
@ 1997-01-28  0:00 Kam Sing Tso
  1997-01-29  0:00 ` Tapani Rundgren
  0 siblings, 1 reply; 3+ messages in thread
From: Kam Sing Tso @ 1997-01-28  0:00 UTC (permalink / raw)



I tried to compile Win32Ada release 3.0 with GNAT 3.09 but failed with
the following error message:

D:\WIN32ADA\src>gnatmake withall
gcc -c withall.adb
win32-winnt.ads:1599:05: warning: no more representation items for type
"LARGE_INTEGER" defined at line 1404
win32-winnt.ads:1599:05: warning: no more representation items for type
"anonymous1_t" defined at line 1393
win32-winnt.ads:1599:05: warning: no more representation items for type
"LUID_AND_ATTRIBUTES" defined at line 1592
win32-winnt.ads:1616:05: warning: no more representation items for type
"SID_IDENTIFIER_AUTHORITY" defined at line 1608
win32-winnt.ads:2642:05: representation item appears too late
win32-winnt.ads:2645:05: representation item appears too late
win32-winnt.ads:2658:05: representation item appears too late
win32-winnt.ads:2659:05: representation item appears too late
gnatmake: "withall.adb" compilation error

Has anyone successfully built win32ada with GNAT 3.09?
I'd appreciate it very much if you could share your experience.

Kam Tso
tso@sohar.com




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Win32Ada and GNAT 3.09
  1997-01-28  0:00 Win32Ada and GNAT 3.09 Kam Sing Tso
@ 1997-01-29  0:00 ` Tapani Rundgren
  0 siblings, 0 replies; 3+ messages in thread
From: Tapani Rundgren @ 1997-01-29  0:00 UTC (permalink / raw)



Kam Sing Tso wrote:
> 
> I tried to compile Win32Ada release 3.0 with GNAT 3.09 but failed with
> the following error message:
> 
> D:\WIN32ADA\src>gnatmake withall
> gcc -c withall.adb
> win32-winnt.ads:1599:05: warning: no more representation items for type
> "LARGE_INTEGER" defined at line 1404
> win32-winnt.ads:1599:05: warning: no more representation items for type
> "anonymous1_t" defined at line 1393
> win32-winnt.ads:1599:05: warning: no more representation items for type
> "LUID_AND_ATTRIBUTES" defined at line 1592
> win32-winnt.ads:1616:05: warning: no more representation items for type
> "SID_IDENTIFIER_AUTHORITY" defined at line 1608
> win32-winnt.ads:2642:05: representation item appears too late
> win32-winnt.ads:2645:05: representation item appears too late
> win32-winnt.ads:2658:05: representation item appears too late
> win32-winnt.ads:2659:05: representation item appears too late
> gnatmake: "withall.adb" compilation error
> 
> Has anyone successfully built win32ada with GNAT 3.09?
> I'd appreciate it very much if you could share your experience.
> 
> Kam Tso
> tso@sohar.com

Yes, after modifying win32-winnt.ads (-> moved some pragmas, which
appeared to late in the code).
However, I still have some linking problems.

Kind Regards
Tapani Rundgren




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Win32Ada and GNAT 3.09
@ 1997-01-29  0:00 Kam Sing Tso
  0 siblings, 0 replies; 3+ messages in thread
From: Kam Sing Tso @ 1997-01-29  0:00 UTC (permalink / raw)



> 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 <name of main program>",
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.






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-01-29  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-28  0:00 Win32Ada and GNAT 3.09 Kam Sing Tso
1997-01-29  0:00 ` Tapani Rundgren
  -- strict thread matches above, loose matches on Subject: below --
1997-01-29  0:00 Kam Sing Tso

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