![]() |
![]() HP OpenVMS Systemsask the wizard |
![]() |
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).
|