Sujet : Re: Can C #includes like this be made to work onVMS?
De : m6502x64 (at) *nospam* gmail.com (mjos_examine)
Groupes : comp.os.vmsDate : 15. Oct 2024, 20:08:00
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vemeig$1qkvj$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
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.