comp.lang.ada
 help / color / mirror / Atom feed
* ObjectAda and MSVC++ Linking via adainit, adafinal
@ 1998-01-22  0:00 Kevin L. Johnson
  0 siblings, 0 replies; only message in thread
From: Kevin L. Johnson @ 1998-01-22  0:00 UTC (permalink / raw)
  To: johnsonkl


Using ObjectAda 7.1 and Visual C++ 5.0, I am attempting to create a
trivial C++ main that invokes adainit, adamain, and adafinal due to some
calls to C++ within the Ada code.  The problem occurring is three
undefined symbols from the C++ link.

--------------------Configuration: AdaMain - Win32
Debug-------------------- Compiling... AdaMain.cpp Linking...
adamain.lib(adainit.obj) : error LNK2001: unresolved external symbol
_elab_func_array adamain.lib(adainit.obj) : error LNK2001: unresolved
external symbol _adaopts adamain.lib(adainit.obj) : error LNK2001:
unresolved external symbol _rts_main_prio_info Debug/AdaMain.exe : fatal
error LNK1120: 3 unresolved externals Error executing link.exe.

AdaMain.exe - 4 error(s), 0 warning(s)


I have searched all files provided with ObjectAda 7.1 and have come up
with nothing.  The following excerpt from the Aonix support website shows
how to import adainit and adafinal to call them from Ada, but provides no
instructions for calling from other languages.

	procedure AdaInit;
	pragma Import (C, AdaInit, "adainit");

The Aonix documentation in this area is inadequate.  I would like to know
if anyone has seen and solved this particular problem.	Thanks.

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-01-22  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-22  0:00 ObjectAda and MSVC++ Linking via adainit, adafinal Kevin L. Johnson

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