T.R | Title | User | Personal Name | Date | Lines |
---|
3177.1 | | QUARK::LIONEL | Free advice is worth every cent | Tue Aug 07 1990 12:54 | 30 |
| Try HELP ADA Getting_Started for the basics on compiling Ada programs. As
for using the DECwindows bindings, the VMS release notes tell you how to
execute (preferably as a batch job) SYS$UPDATE:DECW$COMPILE_ADA_UNITS
to compile the DECwindows Ada bindings into the predefined library.
From then on, when you create an Ada program library, it will have the
units in it.
As of T5.4-4G1, the DECwindows example Ada programs have compile and link
instructions in their comments.
In summary, the steps are:
Do these once:
$ SUBMIT/USER=SYSTEM SYS$UPDATE:DECW$COMPILE_ADA_UNITS
$! wait for it to finish
$ ACS CREATE LIBRARY [.ADALIB] ! Or whatever you want
When you want to use Ada:
$ ACS SET LIBRARY
$ ADA programs
$ ACS LINK main-program-unit-name
Note that with Ada, no special link qualifiers or options files are needed
to link to the DECwindows libraries.
See DECW$EXAMPLES:HELLOWORLD.ADA for an example.
Steve
|
3177.2 | Thanks! | NITTY::DIERCKS | Bent, in a straight world... | Tue Aug 07 1990 14:56 | 8 |
|
Gotcha! The problem is our distribution for Ada does not contain
the command procedure you mention. Can you post one or mail me one?
And, for no reason that I understand, the person who installed
the compiler opted not to have the on-line help installed or the
release-notes kept around! Grrrrr
|
3177.3 | | QUARK::LIONEL | Free advice is worth every cent | Tue Aug 07 1990 16:06 | 17 |
| The DECwindows bindings are not provided with Ada, but with VMS. The VMS
installation asks you if you want DECwindows programming support, and if you
say yes, you are given the further option of selecting all languages or
a subset. Ada is one of the choices, and the Ada files are provided there.
The description of how to use these files were in the VMS V5.1 Release Notes,
but I think disappeared in V5.3. They reappear in V5.4 in another manual,
though I forget which one. I do believe, though, that the package sources
have errors in V5.3 that cause them to compile with errors.
As for the Ada help, yes that is a separate saveset that needs to be installed
when Ada is installed.
There are three Ada examples provided in DECW$EXAMPLES:, HELLOWORLD,
DECBURGER and XLIBINTRO.
Steve
|
3177.4 | the fix for 5.3 | TOOLEY::B_WACKER | | Wed Aug 08 1990 13:39 | 6 |
| And I think the fix for the error is to edit in and
import_VALUED_procedure on the one that fails.
I don't do Ada, but do catch the spray.
Bruce
|
3177.5 | more 2 cents worth... | GSRC::WEST | SCARY : A programmer with a screwdriver. | Thu Aug 09 1990 12:22 | 12 |
|
The call is XCreateImage in DECW$X_.ADA. Bruce (.-1) gave the correct
fix for the PRAGMA IMPORT_mumble statement.
Just change PRAGMA IMPORT_PROCEDURE to PRAGMA IMPORT_VALUED_PROCEDURE and
it will then compile correctly.
When you get these files there is a com file in SYS$UPDATE that will
compile the DECwindows Ada units into the master Ada library, ADA$PREDEFINED.
The com file is DECW$COMPILE_ADA_UNITS.COM.
-=> Jim <=-
|
3177.6 | for the future... | MINNIE::DOUG | just sing it like you feel it | Thu Aug 30 1990 06:19 | 19 |
| this should be a lesson to _all_ decwindows instructors. you may think
that the whole world programs in c under vms, but such is not the case.
i suggest you become familiar with, and have ready to use in a course:
ada, pascal, fortran; and the most amazing thing most training centres
and instructors lack: unix/ultrix.
note, i'm not some ivory tower engineer just dreaming of all the
things people may want; i'm an instructor with the scars of experience
to prove that these are definite NEEDS.
i have had, on three occasions (when visiting other training centres
and customer sites), to hurriedly get ada and decwindows to work
together. i have also failed, on two occasions, to make an ultrix
machine available to ultrix students. there is nothing more pathetic
than making people who don't know vms (and don't want to know vms)
use vms, unless it's making people who want to program in ada program
in c.
--dd
|
3177.7 | | PSW::WINALSKI | Careful with that VAX, Eugene | Thu Aug 30 1990 16:06 | 10 |
| RE: .6
> there is nothing more pathetic
> than making people who don't know vms (and don't want to know vms)
> use vms,
It's even worse making people who don't know Unix (and don't want to know Unix)
use Unix. At least VMS has HELP that can be read by normal human beings.
--PSW
|
3177.8 | | SUBWAY::GRAHAM | The revolution will be televised | Fri Aug 31 1990 01:05 | 7 |
| >At least VMS has HELP that can be read by normal human beings.
So why not get them the ultimate text?
"Gulliver Travels to Mars" ;-)
Kris...
|