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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7972cb596f5c5a22 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Michael Bode Newsgroups: comp.lang.ada Subject: Re: Porting Ada code to Linux Date: Tue, 31 Oct 2006 21:41:36 +0100 Organization: 1&1 Internet AG Message-ID: References: <1162304266.131951.152900@e64g2000cwd.googlegroups.com> <1162316294.922457.113520@h48g2000cwc.googlegroups.com> NNTP-Posting-Host: p54af230b.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: online.de 1162327296 25881 84.175.35.11 (31 Oct 2006 20:41:36 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Tue, 31 Oct 2006 20:41:36 +0000 (UTC) X-message-flag: IMPORTANT MESSAGE -- PLEASE READ IMMEDIATELY!!! X-Accepted-File-Formats: ASCII, .rtf, .ps, .pdf - *NO* MS Office files User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Xref: g2news2.google.com comp.lang.ada:7306 Date: 2006-10-31T21:41:36+01:00 List-Id: "Howard" writes: > The Ada libs are; > > Win32 > Win32-Utils > Win32-Winbase (pragmas to VCPP winbase.h lib) > Win32-Windef > Win32-Winnt > > Stdarg > Stdarg-Impl > Stdarg-Inst > Stdarg-Machine > > These are all Ada packages, and these name represent specs, and bodies, > so named. > > So, we are going to have to compile the Ada code, then link it with the > new C++ code. We are using the Gnu-G++ compiler linker, and we will > need to be able to link in the Ada object files with our C++ files. We > have to find a way to replace, or port, the mentioned Ada libs. > > The "Winbase" dependancy on the Visual C++ files is problematic, at > best... The Win32... things are bindings to the Windows API. You need to find out what Windows functions your app needs and then find equivalent Linux (or POSIX) APIs (Florist is an Ada binding to POSIX). These will probably not be 1:1 equivalences (creating a file in Win32 is different from creating a file in POSIX). The Win32 functions could e.g. be GUI functions (create a window, handle windows message, draw a line, create a dialog box). Then you have to decide if you want to implement that functionality using raw X11 or some GUI toolbox like GTK+ (GtkAda is an Ada binding to GTK+). Or it could be registry access functions. There is no registry in Linux. -- Michael Bode