porting vms's INCLUDE

porting vms's INCLUDE

Deleted user's picture

Hi, I'm trying to port out project from VAX to PC. We used a lot of INCLUDE 'TEXTLIB(MODULNAME)'. I'm just wondering if there exists a windows tool to create the text lib, so that I don't have to change all those includes.

Thanks.

7 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
durisinm's picture

According to CVF's on-line help, INCLUDE 'TEXTLIB(MODULENAME)' is a syntax that's available only for use on VMS.

You can store all the files from your VMS text library in a specific Windows directory and specify that directory to be searched when the compiler encounters INCLUDE 'FILENAME' statements in your source code. From the CVF on-line help:

The /include or /I option specifies one or more additional directories (path) to be searched for module files (USE statement) and include files (INCLUDE statement).

In the visual development environment, specify Custom INCLUDE and USE Path in the Preprocessor Compiler Option Category.


Mike

Deleted user's picture

Thanks, Mike. What I'm trying to do is try to keep the vmx include as it is in VF. So that the file can be compiled under both VAX and Windows. But it seems undoable.

Lei

Steve Lionel (Intel)'s picture

Hah! I knew this would come in handy some day...

Some time ago, I added an undocumented feature to CVF, which is enabled when you have turned on the VMS compatibility switch (/vms). It turns INCLUDE 'TEXTLIB(MODNAME)' into INCLUDE 'MODNAME'. So if you simply have your modules as .F (or .F90, as appropriate) files in your source directory (or somewhere on the include path), it will find them.

Steve

Steve
Deleted user's picture

Thanks, Steve. It's working exactly as you said, except that under vms, the MODENAME can have implicite extension of .txt, but under VF, .txt have to be explicitely included in MODENAME. But it's a good feature to know. It's nice that we can learn some "Undocumented feature" here.

Steve Lionel (Intel)'s picture

That's not quite right. On VMS, modules in a text library don't actually have file names. You may have used a .txt file to create the library, but that doesn't affect the contents of the library. All there is is a module name.

Steve

Steve
Deleted user's picture

Ok, my bad, I don't know anything about vms, just try to port them to pc.

Thanks for the help and have a nice weekend.

Login to leave a comment.