www.delorie.com/gnu/docs/gcc/gnat_ug_31.html   search  
Buy the book!

Untitled Document

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.11 Building Mixed Ada & C++ Programs

Building a mixed application containing both Ada and C++ code may be a challenge for the unaware programmer. As a matter of fact, this interfacing has not been standardized in the Ada 95 reference manual due to the immaturity and lack of standard of C++ at the time. This section gives a few hints that should make this task easier. In particular the first section addresses the differences with interfacing with C. The second section looks into the delicate problem of linking the complete application from its Ada and C++ parts. The last section give some hints on how the GNAT run time can be adapted in order to allow inter-language dispatching with a new C++ compiler.

2.11.1 Interfacing to C++  
2.11.2 Linking a Mixed C++ & Ada Program  
2.11.3 A Simple Example  
2.11.4 Adapting the Run Time to a New C++ Compiler  

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003