Re: Can C #includes like this be made to work onVMS?

Liste des GroupesRevenir à co vms 
Sujet : Re: Can C #includes like this be made to work onVMS?
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vms
Date : 15. Oct 2024, 23:50:58
Autres entêtes
Organisation : SunSITE.dk - Supporting Open source
Message-ID : <670ef1d2$0$705$14726298@news.sunsite.dk>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On 10/15/2024 3:54 PM, Arne Vajhøj wrote:
On 10/15/2024 3:21 PM, Brian Schenkenberger wrote:
On 2024-10-15 19:15:00 +0000, John Dallman said:
In article <vemd23$1qdt1$1@dont-email.me>, mail@SendSpamHere.ORG (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.
>
Don't try to define "package name". General C practice is to regard that
as a directory name that the compiler should look for, used to collect
specific headers together.
>
Instead, try using the various ways of specifying where you want include
files to be read from to indicate the directory that holds the
"package_name" directory.
>
The compiler should look for the directory called "package_nane" and the
"include_file.h" within it.
>
In the distribution, the includes are in a directory:
>
[package_name.INCLUDE]
>
and the source is in [package_name.SRC]
>
I am hoping not to have to edit all of the sources to change the #include "..."s.
 $ define package_name [package_name.INCLUDE]
 should work.
 $ cc/include will not work with this weird setup. If you changed the
includes to be:
     #include "include_file.h"
or:
     #include "package_name/include/include_file.h" or
then it would work.
Or move the include files to [package_name.INCLUDE.package_name].
Any setup where the include path and file system path match
are OK.
Arne

Date Sujet#  Auteur
15 Oct 24 * Can C #includes like this be made to work onVMS?20Brian Schenkenberger
15 Oct 24 +- Re: Can C #includes like this be made to work onVMS?1mjos_examine
15 Oct 24 `* Re: Can C #includes like this be made to work onVMS?18John Dallman
15 Oct 24  `* Re: Can C #includes like this be made to work onVMS?17Brian Schenkenberger
15 Oct 24   +- Re: Can C #includes like this be made to work onVMS?1mjos_examine
15 Oct 24   +* Re: Can C #includes like this be made to work onVMS?13Arne Vajhøj
15 Oct 24   i+- Re: Can C #includes like this be made to work onVMS?1Arne Vajhøj
16 Oct 24   i`* Re: Can C #includes like this be made to work onVMS?11Arne Vajhøj
16 Oct 24   i `* Re: Can C #includes like this be made to work onVMS?10Arne Vajhøj
17 Oct 24   i  +* Re: Can C #includes like this be made to work on VMS?6Lawrence D'Oliveiro
17 Oct 24   i  i+* Re: Can C #includes like this be made to work on VMS?4Arne Vajhøj
17 Oct 24   i  ii`* Re: Can C #includes like this be made to work on VMS?3Lawrence D'Oliveiro
17 Oct 24   i  ii `* Re: Can C #includes like this be made to work on VMS?2Arne Vajhøj
17 Oct 24   i  ii  `- Re: Can C #includes like this be made to work on VMS?1Lawrence D'Oliveiro
17 Oct 24   i  i`- Re: Can C #includes like this be made to work on VMS?1Arne Vajhøj
17 Oct 24   i  `* Re: Can C #includes like this be made to work onVMS?3Craig A. Berry
17 Oct 24   i   `* Re: Can C #includes like this be made to work onVMS?2Arne Vajhøj
18 Oct 24   i    `- Re: Can C #includes like this be made to work onVMS?1Arne Vajhøj
16 Oct 24   +- Re: Can C #includes like this be made to work onVMS?1Craig A. Berry
16 Oct 24   `- Re: Can C #includes like this be made to work onVMS?1Mark Berryman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal