comp.lang.ada
 help / color / mirror / Atom feed
From: mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle)
Subject: Re: win32ada with Object Ada
Date: 1997/06/03
Date: 1997-06-03T00:00:00+00:00	[thread overview]
Message-ID: <5n1nvj$rr0$1@cnn.Princeton.EDU> (raw)
In-Reply-To: Pine.LNX.3.95.970603155149.11503A-100000@crusher.et.ruhr-uni-bochum.de


>I have got Object Ada7 (Beta relaease) and Gnat 3.09 and both of the
>compilers are failed to compile win32ada bindings.  Object Ada does not
>recognize the project files available in the bindings.  However I opened a
>new project and included some files in the project.  Both of the compilers
>have problems with the code in winnt.ads.  

Object Ada should already have the win32ada binding built in (This is
certainly true for v. 7.0.269).  You merely need to add 
c:\objectada\win32ada\binding\lib to the search path and some
subset of the following to Link/Pass to Linker (depending on your app):

c:\objectada\apilib\comdlg32.lib
c:\objectada\apilib\advapi32.lib
c:\objectada\apilib\comctl32.lib

How to get win32ada to compile with gnat 3.09 has been asked enough
times it should probably make this newsgroup's FAQ.  Move offensive
pragmas from where they appear to the procedure spec they modify.  Also,
use the ObjectAda file for win32-winmain rather than the gnat one.

>If the code in winnt.ads really illegal, I ask, "How  could it be compiled
>on Gnat 3.02 (as is mentioned in the readme file)?" Normally all the
>validated compilers should be able to compile a code or not to compile a
>code.  If some compilers can compile it and other not, then one cannot
>talk about compatibility of compilers.

Actually two compilers that are fully compliant with the LRM may compile
the same code such that only one gives an error.  For example, Object Ada
specifies System.Address as an access type, thus making NULL a legal
value.  Gnat does not, thus requiring the use of System.Null_Address
rather than NULL.

--Martin

-- 
Martin C. Carlisle, Computer Science, US Air Force Academy
mcc@cs.usafa.af.mil, http://www.usafa.af.mil/dfcs/bios/carlisle.html
DISCLAIMER:  This content in no way reflects the opinions, standard or 
policy of the US Air Force Academy or the United States Government.




  reply	other threads:[~1997-06-03  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-03  0:00 win32ada with Object Ada Saif-Ali Butt
1997-06-03  0:00 ` Martin C. Carlisle [this message]
1997-06-09  0:00   ` Robert Dewar
1997-06-14  0:00   ` Ginny Wood
1997-06-03  0:00 ` Tom Moran
1997-06-05  0:00 ` Ed Falis
1997-06-07  0:00 ` Robert Dewar
1997-06-09  0:00   ` Pascal Obry
1997-06-09  0:00     ` Robert Dewar
1997-06-10  0:00       ` Pascal Obry
1997-06-09  0:00     ` Robert Dewar
1997-06-10  0:00     ` Geert Bosch
1997-06-17  0:00 ` Heinz-Joachim Staerke
1997-06-20  0:00   ` Robert Dewar
replies disabled

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