comp.lang.ada
 help / color / mirror / Atom feed
From: Michael Bode <m.g.bode@web.de>
Subject: Re: Porting Ada code to Linux
Date: Tue, 31 Oct 2006 21:41:36 +0100
Date: 2006-10-31T21:41:36+01:00	[thread overview]
Message-ID: <ei8ce0$p8p$1@online.de> (raw)
In-Reply-To: 1162316294.922457.113520@h48g2000cwc.googlegroups.com

"Howard" <Howard.Parrish@peterson.af.mil> 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



  parent reply	other threads:[~2006-10-31 20:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-31 14:17 Porting Ada code to Linux Bill
2006-10-31 14:30 ` Georg Bauhaus
2006-10-31 17:38 ` Howard
2006-10-31 18:16   ` Martin Krischik
2006-10-31 20:29     ` Gautier
2006-10-31 20:21   ` Dr. Adrian Wrigley
2006-10-31 20:26   ` Michael Bode
2006-10-31 20:40   ` Gautier
2006-10-31 23:10     ` Dr. Adrian Wrigley
2006-10-31 20:41   ` Michael Bode [this message]
2006-11-01  3:28   ` Steve
2006-11-01  9:03   ` Dmitry A. Kazakov
2006-11-01 10:14 ` Alex Buell
replies disabled

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