[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

C++ and DECwindows Motif Headers?

» close window

The Question is:

 
Is the C++ 6.2 string class incompatible with Motif?  I get errors when
compiling.  Here's a simple example:
 
#include <Xm/Xm.h>          /* Motif Toolkit */
#include <string.hxx>
 
int main()
 
 
  String        str1 ;
 
   str1 = "This is a string" ;
 
 
$cxx stringx.cxx
 
(lots of warnings, finally)
 
class String
......^
%CXX-E-BADTYPNAMRED, invalid redeclaration of type name "String" (declared
          at line 106 of "SYS$COMMON:[DECW$INCLUDE]INTRINSIC.H;2")
at line number 92 in module STRING.HXX of text library
 SYS$COMMON:[SYSLIB]CXXL$ANSI_DEF.TLB;3
 
%CXX-I-MESSAGE, 1 error detected in the compilation of
 "USER:[JHEIM.C.CXX]STRINGX.CXX;5".
 
Thanks,
 
Jeff Heim
The Mitre Corporation
 
 


The Answer is :

 
  This most certainly looks to be an incompatibility in the X headers
  or the C++ environment, though the particular error seen with the
  C++ V5.5 compiler does differ.
 
  Please contact the Compaq Customer Support Center directly.
 

answer written or last revised on ( 6-JUN-2000 )

» close window