[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

Invalid C++ Declaration in queue include?

» close window

The Question is:

 
I recently upgrade to CXX version 5.6.  I tried to compile a very simple
program using the #include <queue> statement.  It would not compile
correctly.  Then I create a program like this
#include <queue>
main()
 
 
It still would not compile. I got the following error
        pair<InputIterator1, InputIterator2> mismatch(InputIterator1 first1,
 
        ....^
 
%CXX-E-DECLARATION, Invalid declaration.
 
                At line number 207 in ALGORITHM.
 
Algorithm is an included file in queue.  Is there a known problem with the
header file and if so is there a fix?
 
Any help would be great.
Thanks
 


The Answer is :

 
  The OpenVMS Wizard recommends you specify /ASSUME=NOHEADER_TYPE_DEFAULT to
  get that to work as you expect.  This is the default in the V6 and later
  compilers.  The V6 library names and included file logic have also been
  modified to avoid this problem.
 
  Please see section 7.2 in the guide -- the section "How to Build Programs
  Using the C++ Standard Library" -- for details.
 

answer written or last revised on ( 17-AUG-1999 )

» close window