PowerAda Compiling Ada Programs that Include Non-Ada Subprograms
From OC Systems Wiki!
To compile, link, and run your program use the following method.
1. Compile your non-Ada subprograms using the commands you normally use for those languages. Compile only as far as object files, not all the way to executable files.
2. Compile the main Ada program with a command like the following:
ada -m -i ObjectName -o OutputName SourceName
- Note that if ObjectName contains C++ code and you are compiling on AIX, you must specify -q xlCbind also. See and "Linking With Foreign Object Code" for more information on using the -i option and other mechanisms for including object files in your program.
3. Run the program by entering the OutputName as a command.