[Info-vax] Can C #includes like this be made to work onVMS?
mjos_examine
m6502x64 at gmail.com
Tue Oct 15 15:08:00 EDT 2024
On 2024-10-15 2:42 p.m., Brian Schenkenberger wrote:
> I want to port a freeware package. It's C code is littered with includes
> like:
>
> #include "package_name/include_file.h"
>
> I've tried the DECC$***_INCLUDE logicals, the CC command quilifier /
> INCLUDE_DIRECTORY and logicals, rooted and otherwise, defining
> "package_name". Can't get the C compiler to find include_file.h.
>
>
$ type test.c
#include <stdio.h>
#include <stdlib.h>
#include "package_name/include_file.h"
int main(int argc, char *argv[])
{
printf("this is a test: %s.\n", testresult);
}
$ type [.package_name]include_file.h
#define testresult "test include file"
$ cc test.c
$
$ show log dec*
(LNM$PROCESS_TABLE)
"DECC$ARGV_PARSE_STYLE" = "ENABLE"
"DECC$EFS_CASE_PRESERVE" = "ENABLE"
"DECC$EFS_CHARSET" = "ENABLE"
$ dir [...]
Directory DKA100:[DEVEL.testincl]
package_name.DIR;1 TEST.C;1 TEST.OBJ;1
Total of 3 files.
Directory DKA100:[DEVEL.testincl.package_name]
INCLUDE_FILE.H;1
Total of 1 file.
Grand total of 2 directories, 4 files.
More information about the Info-vax
mailing list