ADA shared library, newbie

From: sebastien (ethiobite_at_yahoo.com)
Date: 04/29/04


Date: 29 Apr 2004 10:33:01 -0700

Hello,

I'm trying to compile some simple
examples with DEC ADA on a vms station.

test_stack ... Main test
shared_stack ... Body and spec

I would like to build a shareable image
using the acs utility and I have the
message Unit MYLIB not found in directory.

Can someone help me please,

Sebastien.

$ ! ------------------------------------------
$ !
$ ! DCL lines for compilation up to
$ ! execution of a simple Ada program.
$ !
$ ! Creation : Sebastien Thoos
$ ! Date : 12.04.2004
$ !
$ !
$ ! SETTING THE FILES
$ say := WRITE SYS$OUTPUT
$ adaform/ident test_stack.ada
$ adaform/ident shared_stack_.ada
$ adaform/ident shared_stack.ada
$ purge
$ !
$ ! LIBRARY COMPILATION
$ acs create library [.adalib]
$ acs set library/path [.adalib]
$ acs load shared_stack*
$ acs compile shared_stack /architecture=generic
$ !
$ ! SHARED LIBRARY CREATION
$ lib/cre mylib.olb
$ lib mylib.olb [.adalib]*.obj
$ !
$ ! INFO ON THE SHARED LIBRARY
$ lib/list=mylib.lis/full mylib.olb
$ type mylib.lis
$ del mylib.lis;*
$ !
$ ! COMPILATION OF THE TEST APPLICATION
$ acs load test_stack
$ acs compile test_stack
$ !
$ ! LINK OF THE TEST APPLICATION
$ acs link test_stack, mylib/library
$ !
$ ! RUNNING THE APPLICATION
$ !say "-----------------------------"
$ !run test_stack
$ !say "-----------------------------"
$ !



Relevant Pages

  • Shared library, ADA83 on VMS
    ... I'm trying to compile some simple ... examples with DEC ADA on a vms station. ... using the acs utility and I have the ... $ acs set library/path ...
    (comp.lang.ada)
  • Re: Compilation on Vax with script files
    ... You mean VAX - which implies DecAda - and not a more modern OpenVMS? ... Ada's handle dependencies automaticly so compile is just: ... acs load *.ada ... several libraries - in which case you also need ...
    (comp.lang.ada)
  • Re: why learn C?
    ... code in a way that Ada generics do not. ... Please give an example of one case where a C++ template gives more compile ... Ada gives you low-level type safety out of the box, ... "I can write type safe code in C". ...
    (comp.lang.ada)
  • Re: why learn C?
    ... code in a way that Ada generics do not. ... Please give an example of one case where a C++ template gives more compile ... Ada gives you low-level type safety out of the box, ... "I can write type safe code in C". ...
    (comp.lang.ada)
  • Re: GdMs DOS 3d engine in Ada
    ... compile on. ... anybody can get the latest DOS 3D engine here: ... low level things like keyboard & sound drivers, data streaming, ... Linux to DJGPP cross-compiler and run into trouble with Ada. ...
    (comp.os.msdos.djgpp)