[Info-vax] C compiler snag
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Fri May 21 13:46:28 EDT 2021
On 2021-05-21, Simon Clubley <clubley at remove_me.eisner.decus.org-Earth.UFP> wrote:
> On 2021-05-21, John Reagan <xyzzy1959 at gmail.com> wrote:
>> I'll do more research but there is nothing of your description that matches what
>> I know. There is some GEM code mixed in as well. I don't see the C compiler (or
>> the C++) compiler doing anything to avoid DECC$ logicals. For example, turn on
>> DECC$POSIX_COMPLIANT_PATHNAMES and watch the compiler not able to find
>> .TLB files, etc.
>
> John is very right about this. There is a problem when you use net/
> within an include statement. The following code compiles: !!!
That is John Malmberg is right about this. Too many people called John
around here. :-)
Simon.
>
> ---------------------------------------------------------------------------
> $ type nettest.c
> #include <stdio.h>
> #include <net/does_not_exist.h>
>
> int main(int argc, char *argv[])
> {
> printf("Testing net include\n");
> return 0;
> }
> $ cc nettest.c
> ---------------------------------------------------------------------------
>
> Change this to the following and you get the expected error:
>
> ---------------------------------------------------------------------------
> $ type nettest.c
> #include <stdio.h>
> #include <net1/does_not_exist.h>
>
> int main(int argc, char *argv[])
> {
> printf("Testing net include\n");
> return 0;
> }
> $ cc nettest.c
>
> #include <net1/does_not_exist.h>
> .^
> %CC-F-NOINCLFILEF, Cannot find file <net1/does_not_exist.h> specified in #includ
> e directive.
> ---------------------------------------------------------------------------
>
> $ cc/version
> VSI C V7.4-002 on OpenVMS Alpha V8.4-2L2
>
> Simon.
>
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
More information about the Info-vax
mailing list