<?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: C++ problem with %CXX-E-INCOMPLETETYP in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4827669#M36221</link>
    <description>&lt;P&gt;Thanks all for the answers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've just installed HP C++ V7.4-003 and tested but with the same bad result so I will report this to HP. Hopefully they will fix it and until then I go for a pointer solution.&lt;/P&gt;&lt;P&gt;But it's strange that it works on the Alpha....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2011 08:13:08 GMT</pubDate>
    <dc:creator>ptrskg</dc:creator>
    <dc:date>2011-07-15T08:13:08Z</dc:date>
    <item>
      <title>C++ problem with %CXX-E-INCOMPLETETYP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4825889#M36215</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm fairly new to C++ and have problem with the code below, I get an error saying %CXX-E-INCOMPLETETYP when I compile. The complete error message follows at the end.&lt;BR /&gt;&lt;BR /&gt;The compiler version says "HP C++ V7.2-018 on OpenVMS IA64 V8.3-1H1" and the command is $cxx prefs.cpp/def=(__USE_STD_IOSTREAM).&lt;BR /&gt;&lt;BR /&gt;The code compiles OK in "Visual Studio" and on Linux.&lt;BR /&gt;&lt;BR /&gt;My problem seems to bee that I'm trying to refer my own class in the member map m_Groups. Can this be a restriction in the compiler or have I missed anything here? Can this construction be made otherwise to work with the OpenVMS c++ compiler?&lt;BR /&gt;&lt;BR /&gt;Thanks for any help.&lt;BR /&gt;&lt;BR /&gt;Peter&lt;BR /&gt;﻿&lt;/P&gt;&lt;P&gt;prefs.cpp&lt;/P&gt;&lt;PRE&gt;#include "prefs.h"

Prefs::Prefs()
{
}

Prefs::Prefs(const string &amp;amp;name, const string &amp;amp;value)
{
   AddSimpleValue(name, value);
}

Prefs::~Prefs()
{
   m_Values.clear();
   m_Groups.clear();
}

void Prefs::AddSimpleValue(const string &amp;amp;name, const string &amp;amp;value)
{
   pair&amp;lt;ValueMap::iterator,bool&amp;gt; rc;
   m_Values.insert(ValuePair(name, value));
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;prefs.h&lt;/P&gt;&lt;PRE&gt;#ifndef PREFS_H
#define PREFS_H

#include &amp;lt;string&amp;gt;
#include &amp;lt;map&amp;gt;

using namespace std;

class Prefs
{
   typedef map &amp;lt;string, string&amp;gt; ValueMap;
   typedef pair&amp;lt;string, string&amp;gt; ValuePair;
   typedef map &amp;lt;string, Prefs&amp;gt; GroupMap;
   typedef pair&amp;lt;string, Prefs&amp;gt; GroupPair;

   public:
      Prefs();
      Prefs(const string &amp;amp;name, const string &amp;amp;value);
      virtual ~Prefs();

   private:
      void AddSimpleValue(const string &amp;amp;name, const string &amp;amp;value);

      ValueMap m_Values;
      ValueMap::iterator m_ValueItr;

      GroupMap m_Groups;
      GroupMap::iterator m_GroupItr;
};

#endif&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Error message&lt;/P&gt;&lt;PRE&gt;    second_type second;
................^
%CXX-E-INCOMPLETETYP, incomplete type is not allowed
          detected during:
            instantiation of class "std::pair&amp;lt;_TypeT, _TypeU&amp;gt; [with
                      _TypeT=const std::string, _TypeU=Prefs]" at line 117 of
                      "SYS$COMMON:[SYSLIB]CXXL$ANSI_DEF.TLB;1(RW_INTERNAL_TREE.
                      H)"
            instantiation of class "__rw::__rw_rb_tree_node&amp;lt;_Alloc, _Val,
                      _Key, _KeyOf&amp;gt; [with _Alloc=std::map&amp;lt;std::string, Prefs,
                      std::less&amp;lt;std::string&amp;gt;, std::allocator&amp;lt;std::pair&amp;lt;const
                      std::string, Prefs&amp;gt;&amp;gt;&amp;gt;::allocator_type,
                      _Val=std::map&amp;lt;std::string, Prefs,
                      std::less&amp;lt;std::string&amp;gt;, std::allocator&amp;lt;std::pair&amp;lt;const
                      std::string, Prefs&amp;gt;&amp;gt;&amp;gt;::value_type,
                      _Key=std::map&amp;lt;std::string, Prefs,
                      std::less&amp;lt;std::string&amp;gt;, std::allocator&amp;lt;std::pair&amp;lt;const
                      std::string, Prefs&amp;gt;&amp;gt;&amp;gt;::key_type,
                      _KeyOf=__rw::__select1st&amp;lt;std::map&amp;lt;std::string, Prefs,
                      std::less&amp;lt;std::string&amp;gt;, std::allocator&amp;lt;std::pair&amp;lt;const
                      std::string, Prefs&amp;gt;&amp;gt;&amp;gt;::value_type, std::map&amp;lt;std::string,
                      Prefs, std::less&amp;lt;std::string&amp;gt;,
                      std::allocator&amp;lt;std::pair&amp;lt;const std::string,
                      Prefs&amp;gt;&amp;gt;&amp;gt;::key_type&amp;gt;]" at line 292 of
                      "SYS$COMMON:[SYSLIB]CXXL$ANSI_DEF.TLB;1(RW_INTERNAL_TREE.
                      H)"
            instantiation of class "__rw::__rb_tree&amp;lt;_Key, _Val, _KeyOf, _Comp,
                      _Alloc&amp;gt; [with _Key=std::map&amp;lt;std::string, Prefs,
                      std::less&amp;lt;std::string&amp;gt;, std::allocator&amp;lt;std::pair&amp;lt;const
                      std::string, Prefs&amp;gt;&amp;gt;&amp;gt;::key_type,
                      _Val=std::map&amp;lt;std::string, Prefs,
                      std::less&amp;lt;std::string&amp;gt;, std::allocator&amp;lt;std::pair&amp;lt;const
                      std::string, Prefs&amp;gt;&amp;gt;&amp;gt;::value_type,
                      _KeyOf=__rw::__select1st&amp;lt;std::map&amp;lt;std::string, Prefs,
                      std::less&amp;lt;std::string&amp;gt;, std::allocator&amp;lt;std::pair&amp;lt;const
                      std::string, Prefs&amp;gt;&amp;gt;&amp;gt;::value_type, std::map&amp;lt;std::string,
                      Prefs, std::less&amp;lt;std::string&amp;gt;,
                      std::allocator&amp;lt;std::pair&amp;lt;const std::string,
                      Prefs&amp;gt;&amp;gt;&amp;gt;::key_type&amp;gt;, _Comp=std::map&amp;lt;std::string, Prefs,
                      std::less&amp;lt;std::string&amp;gt;, std::allocator&amp;lt;std::pair&amp;lt;const
                      std::string, Prefs&amp;gt;&amp;gt;&amp;gt;::key_compare,
                      _Alloc=std::map&amp;lt;std::string, Prefs,
                      std::less&amp;lt;std::string&amp;gt;, std::allocator&amp;lt;std::pair&amp;lt;const
                      std::string, Prefs&amp;gt;&amp;gt;&amp;gt;::allocator_type]" at line 120 of
                      "SYS$COMMON:[SYSLIB]CXXL$ANSI_DEF.TLB;1(MAP.)"
            instantiation of class "std::map&amp;lt;_Key, _TypeT, _Compare,
                      _Allocator&amp;gt; [with _Key=std::string, _TypeT=Prefs,
                      _Compare=std::less&amp;lt;std::string&amp;gt;,
                      _Allocator=std::allocator&amp;lt;std::pair&amp;lt;const std::string,
                      Prefs&amp;gt;&amp;gt;]" at line 27 of "SPPUSR_ROOT:[PSK]prefs.h;31"
at line number 85 in module RW_INTERNAL_PAIR.H of text library SYS$COMMON:[SYSLIB]CXXL$ANS
I_DEF.TLB;1

%CXX-I-MESSAGE, 1 error detected in the compilation of "SPPUSR_ROOT:[PSK]prefs.cpp;11".&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 07:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4825889#M36215</guid>
      <dc:creator>ptrskg</dc:creator>
      <dc:date>2011-07-14T07:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: C++ problem with %CXX-E-INCOMPLETETYP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4826393#M36216</link>
      <description>&lt;P&gt;I smell a BUG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I compiled it with HP C++ V7.3-009 for OpenVMS Alpha V8.4 ﻿ and found no problems. I do not have a Itanium to test.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the 7.2 the latest compiler for Itanium? if not maybe an upgrade helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jouk&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 13:00:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4826393#M36216</guid>
      <dc:creator>Jansen_8</dc:creator>
      <dc:date>2011-07-14T13:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: C++ problem with %CXX-E-INCOMPLETETYP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4826485#M36217</link>
      <description>&lt;P&gt;Updating may change this,&amp;nbsp; but whether there is a bug or not depends on how the map template should be implemented in STL. It's not a compiler bug. The type definition and use of&amp;nbsp; GroupMap is within the definition of Prefs, hence Prefs is incomplete.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 13:46:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4826485#M36217</guid>
      <dc:creator>x2084</dc:creator>
      <dc:date>2011-07-14T13:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: C++ problem with %CXX-E-INCOMPLETETYP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4826645#M36218</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp; Looks about the same here, with:&lt;BR /&gt;&lt;BR /&gt;IT $ cxx /version&lt;BR /&gt;HP C++ V7.3-023 on OpenVMS IA64 V8.3-1H1&lt;BR /&gt;&lt;BR /&gt;so at least one compiler upgrade may not help much.&amp;nbsp; No such complaint&lt;BR /&gt;from:&lt;BR /&gt;&lt;BR /&gt;alp $ cxx /ver&lt;BR /&gt;HP C++ V7.3-009 for OpenVMS Alpha V8.3&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Generally speaking, when a compiler complains about a system header&lt;BR /&gt;file, ("at line number 85 in module RW_INTERNAL_PAIR.H of text library&lt;BR /&gt;SYS$COMMON:[SYSLIB]CXXL$ANSI_DEF.TLB;1"), one is tempted to blame the&lt;BR /&gt;folks who supplied the compiler.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 15:15:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4826645#M36218</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-07-14T15:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: C++ problem with %CXX-E-INCOMPLETETYP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4826723#M36219</link>
      <description>&lt;P&gt;FWIW and based on various published statements from HP, the HP C++ compiler for OpenVMS I64 is based on the Intel C++ compiler on Itanium.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regardless, contact the HP support center, and see what they think about this error and about this header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 16:30:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4826723#M36219</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-07-14T16:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: C++ problem with %CXX-E-INCOMPLETETYP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4827411#M36220</link>
      <description>&lt;P&gt;&amp;gt;Can this construct be made otherwise to work with the OpenVMS c++ compiler?﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could use a pointer to that container.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;the HP C++ compiler for OpenVMS I64 is based on the Intel C++ compiler on Itanium. ﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the important part is that it is EDG and RW based.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This fails on HP-UX with aCC6 with the same error.&amp;nbsp; But works fine under g++.&lt;/P&gt;&lt;P&gt;So this an illegal program that just depends on the quality of implementation of the STL.&lt;/P&gt;&lt;P&gt;(I suppose it could be that g++ doesn't do error checking of the point of instantiation correctly.)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2011 05:35:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4827411#M36220</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-07-15T05:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: C++ problem with %CXX-E-INCOMPLETETYP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4827669#M36221</link>
      <description>&lt;P&gt;Thanks all for the answers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've just installed HP C++ V7.4-003 and tested but with the same bad result so I will report this to HP. Hopefully they will fix it and until then I go for a pointer solution.&lt;/P&gt;&lt;P&gt;But it's strange that it works on the Alpha....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2011 08:13:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4827669#M36221</guid>
      <dc:creator>ptrskg</dc:creator>
      <dc:date>2011-07-15T08:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: C++ problem with %CXX-E-INCOMPLETETYP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4828033#M36222</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have been in contact with HP support and they answered with returning mail that this is a known problem and they supplied me with a fix that seems to work.&lt;/P&gt;&lt;P&gt;So, I close this case and thanks once again.&lt;/P&gt;&lt;P&gt;Peter﻿&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2011 13:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4828033#M36222</guid>
      <dc:creator>ptrskg</dc:creator>
      <dc:date>2011-07-15T13:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: C++ problem with %CXX-E-INCOMPLETETYP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4828077#M36223</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;[...] they supplied me with a fix that seems to work. [...]&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Describe "a fix"?&amp;nbsp; New header file(s)?&amp;nbsp; New compiler?&amp;nbsp; Something super-secret?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2011 13:44:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4828077#M36223</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-07-15T13:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: C++ problem with %CXX-E-INCOMPLETETYP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4828135#M36224</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/586411"&gt;@Steven Schweda&lt;/a&gt; wrote:&lt;P&gt;&amp;nbsp;&amp;nbsp; Describe "a fix"?&amp;nbsp; New header file(s)?&amp;nbsp; New compiler?&amp;nbsp; Something super-secret?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;HP sent me a new CXXL$ANSI_DEF.TLB but I don't know which h-files they have changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2011 14:06:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4828135#M36224</guid>
      <dc:creator>ptrskg</dc:creator>
      <dc:date>2011-07-15T14:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: C++ problem with %CXX-E-INCOMPLETETYP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4828195#M36225</link>
      <description>&lt;P&gt;Pull the files and diff'm, if you're interested in changes. &amp;nbsp;Between &lt;A target="_blank" href="http://labs.hoffmanlabs.com/node/1424"&gt;this libxext procedure&lt;/A&gt;&amp;nbsp;and &lt;A target="_blank" href="http://www.digiater.nl/openvms/freeware/v80/hoffman_examples/diff_directories.com"&gt;this directory-differences tool&lt;/A&gt;, you&amp;nbsp;should have the tools that deal with everything you need here to differences the old and the new libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And FWIW, the typical (modern) approach when dealing with HP OpenVMS or other Enterprise software is to contact the vendor's support center directly, and get the updates. &amp;nbsp;&amp;nbsp;(When you have support, obviously.)&amp;nbsp;﻿&amp;nbsp;HP clearly prefers this approach, and (when the initial basic Google search that is an inherent part of researching most any problem turns up nothing) this direct-to-support approach is (usually) the fastest approach to get your issues resolved or your servers back online. &amp;nbsp; Asking questions in forums (if Google turns up nothing) (usually) just delays the resolution. &amp;nbsp;Somebody (like me) will usually just tell you "call HP", and you can cut to the chase yourself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's also involved and somewhat more subtle, HP also uses these reports to prioritize and generate and push out kits with fixes. &amp;nbsp;The more times a bug is reported, the more likely that the fix will be a patch. &amp;nbsp;(Shipping out isolated files is comparatively problematic; folks can make mistakes with the installations (copying the file to the SYS$SPECIFIC directory, for instance), and there's no integrated tracking of hand-installed images.)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2011 14:57:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/c-problem-with-cxx-e-incompletetyp/m-p/4828195#M36225</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-07-15T14:57:14Z</dc:date>
    </item>
  </channel>
</rss>

