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,6afaf3884e6e29ab X-Google-Attributes: gid103376,public From: mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle) Subject: Re: win32ada with Object Ada Date: 1997/06/03 Message-ID: <5n1nvj$rr0$1@cnn.Princeton.EDU>#1/1 X-Deja-AN: 247138523 References: Organization: US Air Force Academy, Dept of Computer Science Newsgroups: comp.lang.ada Date: 1997-06-03T00:00:00+00:00 List-Id: >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.