Remote Language Compile and Build

 To compile and build your C, C++, COBOL, FORTRAN, or PASCAL program on a remote  OpenVMS system

1.  In the NetBeans IDE, click on the Filesystems tab.

2.  Select the remote system.

3.  Right click on the language source file.

4.  Choose Remote Compile or Remote Build, or use the Remote Toolbar.

5.  Use a DCL command procedure or an Ant XML file to execute the program.

Important  If you try to locally compile or build these files, you will get an error. The OpenVMS compilers do not run on the desktop system.

    

Building Versus Compiling
The difference between Build and Compile is that the Build command always compiles the source, whereas Compile only compiles the source if the source is modified or the corresponding object file is not available.

A successful compile or build is indicated by the following message in the Output Window:

Finished <my-3GL-language-app>.

If the Compile command is repeated without the source code changing, the output message is:

Nothing was compiled, everything is up to date. Finished <my-3GL-language-app>.

There are several properties you can change on the remote server that affect how you compile and build 3GL language programs on the remote server. To change these properties, select the file, then right click on Remote Properties.  See Remote Options for more information.  

Command qualifiers for remote compilation are controlled using the remote properties named Local Qualifiers and Global Qualifiers. The values of these two strings are inserted into the compile command that is generated and sent to OpenVMS.

Local qualifiers are placed after the file to be compiled.  Global qualifiers are placed after the command verb.

Following is an example of the remote properties for a C++ file called DECBURGER.C.