linking error for cpp program



Help for C/C++ for MVS, OS/390 C/C++, z/OS C/C++ and C/C++ Productivity Tools for OS/390

linking error for cpp program

Postby smb011a » Sun Feb 24, 2008 10:21 pm

Hi guys....

I am getting unresolved references in C++ programs and can not identify what is missing. This is the first time that i have tried using something from the STL in c++. Here is a sample snipet of my code. I am assuming i am missing a DSN or an include in my jcl. Please help!!!!

#include <iostream>
#include <vector>
#include <stdio.h>

using namespace std;

#ifndef __cplusplus
#pragma pack(1)
#endif

These are my two unresolveds...

IEW2456E 9207 SYMBOL @XLEN@@Q UNRESOLVED
IEW2456E 9207 SYMBOL @XRAN@@Q UNRESOLVED
smb011a
 
Posts: 1
Joined: Sun Feb 24, 2008 10:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: linking error for cpp program

Postby CICS Guy » Mon Feb 25, 2008 5:59 pm

Looks like you are missing an include.....
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time


Return to C, C++

 


  • Related topics
    Replies
    Views
    Last post