| 1 |
http://perl-qa.hexten.net/wiki/index.php/Testing_on_VMS |
| 2 |
|
| 3 |
--- |
| 4 |
|
| 5 |
15:32 <anomenat> well $Config{cc} will contain 'CC/DECC', which is the right |
| 6 |
command to use but "if -x $cc[0]" will fail |
| 7 |
15:33 <anomenat> then "CC/DECC foo.c" will compile foo.c to foo.obj |
| 8 |
15:37 <DrHyde> how do i pass include paths? |
| 9 |
15:38 <anomenat> CC/DECC/INCLUDE_DIRECTORY=foo |
| 10 |
15:39 <anomenat> I'm still trying to work out the best way to do the linking |
| 11 |
bit though |
| 12 |
15:40 <DrHyde> is CC/DECC/INCLUDE_DIRECTORY=foo/INCLUDE_DIRECTORY=bar valid? |
| 13 |
15:41 <anomenat> yes |
| 14 |
15:41 <DrHyde> hurrah! |
| 15 |
15:41 <anomenat> I'm still trying to work out the best way to do linking though |
| 16 |
16:17 <anomenat> well, buggered if I can find a standard place to put libraries |
| 17 |
on VMS. There probably is one but my VMS skills are too weak. |
| 18 |
16:17 <anomenat> anyway, the command is just "LINK foo.obj, bar.obj" where foo |
| 19 |
is the previously compiled foo.c and bar is the library whose |
| 20 |
presence you are testing for |
| 21 |
16:18 <anomenat> but it won't be very portable because "bar.obj" needs to be a |
| 22 |
proper path, unless it is a system library |
| 23 |
16:26 <DrHyde> that's a good start, so thanks! |
| 24 |
16:34 <anomenat> no problem. incidentally, VMS command line options can be |
| 25 |
shortened to their shortest unambiguous form, and so |
| 26 |
/include_directory can actually just be /inc |
| 27 |
16:50 <anomenat> OK, it looks like SYS$LIBRARY is the VMS sort-of-equivalent of |
| 28 |
/usr/lib on Linux |
| 29 |
16:52 <anomenat> thus "LINK foo.obj, sys$library:vaxcrtl/share" links foo.obj |
| 30 |
with the shared library vaxctrl |
| 31 |
16:54 <anomenat> and "LINK foo.obj, sys$library:ucx$ipc/library" links foo.obj |
| 32 |
with the static library ucx$ipc |
| 33 |
16:54 <anomenat> also, "link/exe=bar.exe foo.obj" links foo.obj to create an |
| 34 |
executable called bar.exe |