<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CXX /INCLUDE qualifier in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042013#M30941</link>
    <description>The rules for INCLUDE file searching are complex and affected by numerous factors. See HELP CXX/INCLUDE_DIRECTORY or the C++ documentation for full details.&lt;BR /&gt;&lt;BR /&gt;Note that in addition to /INCLUDE_DIRECTORY, the CXX command also has a qualifier /NESTED_INCLUDE_DIRECTORY which controls where the compiler looks for include files relative to the referencing file. Perhaps the default for this qualifier isn't what you want?&lt;BR /&gt;&lt;BR /&gt;Experimenting with various combinations of qualifiers using Compaq C++ V6.5-004, I was able to make the compiler find nested include files where I wanted them fairly easily. Also note that the search logic is different depending on the syntax you use:&lt;BR /&gt;&lt;BR /&gt;#include &lt;A.H&gt; vs #include "a.h"&lt;/A.H&gt;</description>
    <pubDate>Wed, 06 Aug 2003 02:34:53 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2003-08-06T02:34:53Z</dc:date>
    <item>
      <title>CXX /INCLUDE qualifier</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042012#M30940</link>
      <description>I am having a problem using the CXX /INCLUDE_DIRECTORY qualifier on OpenVms and I am wondering if I am doing something wrong.  I set the directory to a parallel directory from where I am compiling as follows:&lt;BR /&gt;&lt;BR /&gt;/INCLUDE="../rtsrc"&lt;BR /&gt;&lt;BR /&gt;which is the way I do it on UNIX and it works fine.  This works on OpenVms for direct includes (where the .cxx file includes a .h file) but does not seem to work for nested includes (where a .h file includes another .h file).  Has anyone else encountered this problem or know a way to solve it? &lt;BR /&gt;&lt;BR /&gt;Thanks, &lt;BR /&gt;&lt;BR /&gt;Ed Day&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Aug 2003 20:46:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042012#M30940</guid>
      <dc:creator>Ed Day</dc:creator>
      <dc:date>2003-08-05T20:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: CXX /INCLUDE qualifier</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042013#M30941</link>
      <description>The rules for INCLUDE file searching are complex and affected by numerous factors. See HELP CXX/INCLUDE_DIRECTORY or the C++ documentation for full details.&lt;BR /&gt;&lt;BR /&gt;Note that in addition to /INCLUDE_DIRECTORY, the CXX command also has a qualifier /NESTED_INCLUDE_DIRECTORY which controls where the compiler looks for include files relative to the referencing file. Perhaps the default for this qualifier isn't what you want?&lt;BR /&gt;&lt;BR /&gt;Experimenting with various combinations of qualifiers using Compaq C++ V6.5-004, I was able to make the compiler find nested include files where I wanted them fairly easily. Also note that the search logic is different depending on the syntax you use:&lt;BR /&gt;&lt;BR /&gt;#include &lt;A.H&gt; vs #include "a.h"&lt;/A.H&gt;</description>
      <pubDate>Wed, 06 Aug 2003 02:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042013#M30941</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2003-08-06T02:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: CXX /INCLUDE qualifier</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042014#M30942</link>
      <description>Hi Ed,&lt;BR /&gt;&lt;BR /&gt;I agree with John.&lt;BR /&gt;I compiled with a C (not C++) and thy have same qualifier. Try using /NESTED=PRIMARY.&lt;BR /&gt;If yet don't work use vms convention /INCL="[-.RTSRC]"&lt;BR /&gt;&lt;BR /&gt;Bye&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Aug 2003 05:44:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042014#M30942</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-08-06T05:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: CXX /INCLUDE qualifier</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042015#M30943</link>
      <description>Thanks for the answers, however, I am still not able to get it to work.  I have the following compilation command line: &lt;BR /&gt;&lt;BR /&gt;cxx /include="../rtsrc" /include="../rtbersrc" /nested=primary acGenEncode.cxx&lt;BR /&gt;&lt;BR /&gt;(I also tried dir names in VMS form, both relative and absolute).&lt;BR /&gt;&lt;BR /&gt;The file "acoptions.h" resides in the current working directory and includes "asn1type.h" which resides in the rtsrc directory.  When I go to compile, I get the following: &lt;BR /&gt;&lt;BR /&gt;#include "asn1type.h"&lt;BR /&gt;.....................^&lt;BR /&gt;%CXX-E-SRCFILNOOPEN, could not open source file "asn1type.h"&lt;BR /&gt;at line number 29 in file SPE51$DKA0:[ASN1C.ACSRC]ACOPTIONS.H;1&lt;BR /&gt;&lt;BR /&gt;I am thinking the only option is to dump all the include files into a single directory which I hope is not the case.&lt;BR /&gt;&lt;BR /&gt;Regards, &lt;BR /&gt;&lt;BR /&gt;Ed&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Aug 2003 13:00:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042015#M30943</guid>
      <dc:creator>Ed Day</dc:creator>
      <dc:date>2003-08-06T13:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: CXX /INCLUDE qualifier</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042016#M30944</link>
      <description>Well your example shows it all ;-), this is not &lt;BR /&gt;Unix ;-&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Do not use separate /include options (the last one wins and is the only one active), but a list like /include=(dir1,dir2)</description>
      <pubDate>Wed, 06 Aug 2003 13:41:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042016#M30944</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2003-08-06T13:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: CXX /INCLUDE qualifier</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042017#M30945</link>
      <description>Hi Ed,&lt;BR /&gt;Martin say correct.&lt;BR /&gt;With vms second /include overlap first so  ../rtsrc is ignored.&lt;BR /&gt;&lt;BR /&gt;Bye&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Aug 2003 14:40:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042017#M30945</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-08-06T14:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: CXX /INCLUDE qualifier</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042018#M30946</link>
      <description>Thanks for the response.&lt;BR /&gt;&lt;BR /&gt;I tried /include=("../rtsrc","../lmsrc") and it made no difference.&lt;BR /&gt;&lt;BR /&gt;Copying all of the header files to my current working directory is working, so I guess I'll stick with doing it that way. &lt;BR /&gt;&lt;BR /&gt;Thanks to all who answered.&lt;BR /&gt;&lt;BR /&gt;Ed&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Aug 2003 15:53:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042018#M30946</guid>
      <dc:creator>Ed Day</dc:creator>
      <dc:date>2003-08-06T15:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: CXX /INCLUDE qualifier</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042019#M30947</link>
      <description>Ed,&lt;BR /&gt;&lt;BR /&gt;  I'm not completely clear on where you want the nested include file to be read from. You should be able to find some combination of qualifiers that do whatever you want. Try this test:&lt;BR /&gt;&lt;BR /&gt;main.cxx&lt;BR /&gt;#include &lt;A.H&gt;&lt;BR /&gt;#include "a.h"&lt;BR /&gt;&lt;BR /&gt;a.h&lt;BR /&gt;#include &lt;B.H&gt;&lt;BR /&gt;#include "b.h"&lt;BR /&gt;&lt;BR /&gt;b.h&lt;BR /&gt;// comment identifying the location&lt;BR /&gt;&lt;BR /&gt;put appropriately commented copies of b.h in the current directory, the directory containing main.cxx and each of the include directories in the list. Then compile with&lt;BR /&gt;/LIST/SHOW=INCLUDE. Note that the location chosen depends on the format used. For example, with copies of B.H present in both source directory and the second include directory, and compiling with&lt;BR /&gt;&lt;BR /&gt;$ CXX [.SRC]MAIN.LIS/LIST/SHOW=INCL-&lt;BR /&gt;/INCLUDE=([.INCL1].[.INCL2])/NEST=PRIMARY&lt;BR /&gt;&lt;BR /&gt;my listing gives:&lt;BR /&gt;&lt;BR /&gt;        1 #include &lt;A.H&gt;&lt;BR /&gt;     I1       2 #include &lt;B.H&gt;&lt;BR /&gt;     I2       3 // [.INCL2]B.H&lt;BR /&gt;     I1       4 #include "b.h"&lt;BR /&gt;     I2       5 // [.SRC]B.H&lt;BR /&gt;       6 #include "a.h"&lt;BR /&gt;     I1       7 #include &lt;B.H&gt;&lt;BR /&gt;     I2       8 // [.INCL2]B.H&lt;BR /&gt;     I1       9 #include "b.h"&lt;BR /&gt;     I2      10 // [.SRC]B.H&lt;BR /&gt;&lt;BR /&gt;Removing the file from the source directory and using the same command it changes to:&lt;BR /&gt;&lt;BR /&gt;       1 #include &lt;A.H&gt;&lt;BR /&gt;     I1       2 #include &lt;B.H&gt;&lt;BR /&gt;     I2       3 // [.INCL2]B.H&lt;BR /&gt;     I1       4 #include "b.h"&lt;BR /&gt;     I2       5 // [.INCL2]B.H&lt;BR /&gt;       6 #include "a.h"&lt;BR /&gt;     I1       7 #include &lt;B.H&gt;&lt;BR /&gt;     I2       8 // [.INCL2]B.H&lt;BR /&gt;     I1       9 #include "b.h"&lt;BR /&gt;     I2      10 // [.INCL2]B.H&lt;BR /&gt;&lt;BR /&gt;The search path is defined in HELP CXX/INCLUDE. If you have an example that doesn't follow the rules, please try and characterise it with skeletal #include sources and report it to your local customer support centre.&lt;BR /&gt;&lt;BR /&gt;&lt;/B.H&gt;&lt;/B.H&gt;&lt;/A.H&gt;&lt;/B.H&gt;&lt;/B.H&gt;&lt;/A.H&gt;&lt;/B.H&gt;&lt;/A.H&gt;</description>
      <pubDate>Thu, 07 Aug 2003 01:09:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042019#M30947</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2003-08-07T01:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: CXX /INCLUDE qualifier</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042020#M30948</link>
      <description>Hi John, &lt;BR /&gt;&lt;BR /&gt;Upon closer inspection, I found putting all of the include directories in parens using a single /include statement worked.  Thanks for all your help. &lt;BR /&gt;&lt;BR /&gt;Regards, &lt;BR /&gt;&lt;BR /&gt;Ed&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Aug 2003 11:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cxx-include-qualifier/m-p/3042020#M30948</guid>
      <dc:creator>Ed Day</dc:creator>
      <dc:date>2003-08-07T11:36:56Z</dc:date>
    </item>
  </channel>
</rss>

