Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

HP OpenVMS Systems

ask the wizard
Content starts here

Help Debugging C++ Application?

» close window

The Question is:

 
 
I develop c++ application using "Compaq C++ V6.2-016 for OpenVMS Alpha V7.2-1"
 compiler on an Alpha OpenVMS 7.2-1.  This application has a statment "cin >>
 File_name".  This compiles and runs ok on this OpenVms 7.2-1.  I took this
 binary to another Alpha
machine with OpenVMS 7.3-1.  I ran the application on OpenVMS 7.3-1.  The
 application won't wait for the input from the user, and continues to execute
 with invalid File_name.  Can you please explain what is wrong with 7.3-1?
 
Thank you.
Prabhakara Vinta
 


The Answer is :

 
  It is unlikely, that the problem has anything to do with the C++ compiler
  or libraries.
 
  The OpenVMS Wizard built x.cxx shown below on OpenVMS V7.2-1 with the
  Compaq C++ V6.2-016 compiler and successfully executed x.exe on V7.3-1.
  The OpenVMS Wizard tested both standard pre-ANSI IOstreams.
 
  For proper display on the Ask The Wizard website, the use of the angle
  bracket within the application C code has been replaced with the use of
  the equivalent brace characters.
 
#include {iostream}
 
main() {
  static char File_name[80];
  cin }} File_name;
  cout {{ File_name {{ endl;
 
 
  For information on debugging application problems, please see topics
  (4129) and (7552), and common problems are listed in (1661).
 

answer written or last revised on ( 6-FEB-2003 )

» close window

 

** About PDF files: The PDF files on this Web site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software installed on your system, you may download it from Adobe's Web site
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.