From: jerry@jvdsys.stuyts.nl (Jerry van Dijk)
Subject: Re: How to Link Borland C++ object files with GNAT
Date: 1999/04/08
Date: 1999-04-08T00:00:00+00:00 [thread overview]
Message-ID: <F9w596.98@jvdsys.stuyts.nl> (raw)
In-Reply-To: 370CF3A4.55001E84@harris.com
Dennis Quinones (dquinone@harris.com) wrote:
: I have PCMCIA drivers written in Borland C++ and I am trying to link
: them to
: my main application written in Ada (GNAT 3.11). Borland C++ generates
: *.obj
: files which are not compatible to *.o files.
: Is there a way to convert the *.obj files to *.o files?
: Or any other suggestions would be greatly appreacited.
Well, if this is really C++ code (and not C compiled by a also C++ capable
compiler), moving from .obj to .o is the least of your worries. BC will
use its own unique way of encoding functions, exceptions, namespaces, and
such, that GNAT, of course, knows nothing about. That does not mean it cannot
be made to work, it does mean it will involve a lot of work.
I know of no way to convert from .obj to .o format (although PE includes
Coff, so this should be relatively easy to do). This assumes of course, that
you will also initialize all runtime libraries and DLL's properly yourself.
The easy way out is compile your drivers into a DLL, and then build a
GNAT style (.a) import library for it.
--
-- Jerry van Dijk | Leiden, Holland
-- Team Ada | jdijk@acm.org
-- see http://stad.dsl.nl/~jvandyk
next prev parent reply other threads:[~1999-04-08 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-08 0:00 How to Link Borland C++ object files with GNAT Dennis Quinones
1999-04-08 0:00 ` Jerry van Dijk [this message]
1999-04-09 0:00 ` David Botton
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox