Judson,
Add the line
using namespace std;
after the "#include <iostream>" in the hello cpp source, recompile, and
rebuild.
This should make all those error messages disappear.
Mike Donovan
"West, Judson"
<[EMAIL PROTECTED]
> To
Sent by: The IBM [email protected]
z/VM Operating cc
System
<[EMAIL PROTECTED] Subject
ARK.EDU> C++ Load Question
03/23/2006 02:20
PM
Please respond to
The IBM z/VM
Operating System
<[EMAIL PROTECTED]
ARK.EDU>
I have installed the IBM C/C++ compiler on z/VM V4.4. I have the
following HELLO CPP program:
#ifdef __cplusplus
#include <iostream.h>
#else
#include <stdio.h>
#endif
int main()
{
#ifdef __cplusplus
cout << "hello, C++ world!" << endl;
#else
printf("hello, world!\n");
#endif
return 0;
}
I compile it with "cc hello cpp" and receive no errors. Then issue the
cmod command below and receive the responses below it.
cmod hello (c++
IEW2456E 9207 SYMBOL endl__FR7ostream UNRESOLVED. MEMBER COULD NOT BE
INCLUDED
FROM THE DESIGNATED CALL LIBRARY.
IEW2456E 9207 SYMBOL __ls__7ostreamFPCc UNRESOLVED. MEMBER COULD NOT BE
INCLUDED FROM THE DESIGNATED CALL LIBRARY.
IEW2456E 9207 SYMBOL cout UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
THE
DESIGNATED CALL LIBRARY. NAME SPACE = 3
IEW2456E 9207 SYMBOL do_ipfx__7istreamFi UNRESOLVED. MEMBER COULD NOT
BE
INCLUDED FROM THE DESIGNATED CALL LIBRARY.
Binder function BINDW completed with return code 8 and reason code
83000301
IEW2617I 4C43 DEFINITION SIDE FILE IS EMPTY. THERE ARE NO SYMBOLS TO BE
EXPORTED.
Ready(00008);
What am I missing?
Also, I can't compile in a virtual machine under 128MB. It's as if the
DCSS is not being used. Here's the response from the Q NSS command:
q nss 431 map
FILE FILENAME FILETYPE MINSIZE BEGPAG ENDPAG TYPE CL #USERS PARMREGS
VMGROUP
0431 CCNSEG DCSS N/A 06000 08FFF SR A 00000 N/A
N/A
Your help is appreciated.
----------------------
Judson West
Systems Programming Team
Teradata(r), a division of NCR Corporation
All words above are not actual sentences but random letters, spaces and
the occasional punctuation. I can not be held responsible for the
meaning you get from these random letters. I can however be held
responsible for the spaces.