warnings C++ code

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
altruist
Participant
Posts: 73
Joined: Thu May 11, 2006 6:50 am

warnings C++ code

Post by altruist »

Hi,

I have written a C++ program, while compiling the code I am getting the below error. Can you please help me identify the problem.

Code: Select all

##W IIS-DSEE-TBLD-00000 19:58:13(004) <main_program> When checking operator: Output from subprocess: ld: 0711-224 WARNING: Duplicate symbol: std::out_of_range::_Doraise() const
ld: 0711-224 WARNING: Duplicate symbol: std::out_of_range::~out_of_range()
ld: 0711-224 WARNING: Duplicate symbol: std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Copy(unsigned long)
ld: 0711-224 WARNING: Duplicate symbol: std::logic_error::_Doraise() const
ld: 0711-224 WARNING: Duplicate symbol: std::length_error::_Doraise() const
ld: 0711-224 WARNING: Duplicate symbol: std::bad_alloc::_Doraise() const
ld: 07
##W IIS-DSEE-TBLD-00000 19:58:13(005) <main_program> When checking operator: Output from subprocess: 11-224 WARNING: Duplicate symbol: std::logic_error::~logic_error()
ld: 0711-224 WARNING: Duplicate symbol: std::length_error::~length_error()
ld: 0711-224 WARNING: Duplicate symbol: std::bad_alloc::~bad_alloc()
ld: 0711-224 WARNING: Duplicate symbol: std::basic_string<char,std::char_traits<char>,std::allocator<char> >::npos
ld: 0711-224 WARNING: Duplicate symbol: std::logic_error::what() const
ld: 0711-224 WARNING: Duplicate symbol: std::exception::_Doraise() const
ld: 0711-224 WARNING: Duplicate symbol: st
##W IIS-DSEE-TBLD-00000 19:58:13(006) <main_program> When checking operator: Output from subprocess: d::exception::~exception()
ld: 0711-224 WARNING: Duplicate symbol: std::exception::what() const
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
Below is the c++ code

Code: Select all

//
// Generated file to implement 
//

// define our input/output link names
inputname 0 Raw_In_Lnk;
outputname 0 Std_Out_Lnk;

initialize {
// define our control variables
int8 RowRejected0;
int8 NullSetVar0;

// declare our intermediate variable for this section

string                        emptystring;

// Declarations for Field: DateValTest
string                        t_DateValTest;
string                        f_DateValTest;
date                          d_DateValTest;


// Initalise constant values which require conversion


emptystring="";


// Constants for Field : DateValTest
t_DateValTest = "DATE";
f_DateValTest = "%YYYY-%MM-%DD";
d_DateValTest = date_from_string("9999-12-31",f_DateValTest);


// Stage variable declaration and initialisation


string StdDateValTest;
int8 FlgDateValTest;

StdDateValTest="";
FlgDateValTest="";


}


mainloop {

// declare our intermediate variables for this section
string NullHandleDateValTest;


// evaluate the stage variables first

if (notnull(Raw_In_Lnk.DateValTest)) {
	NullHandleDateValTest = Raw_In_Lnk.DateValTest;
} else {
	NullHandleDateValTest = emptystring;
}

StdDateValTest = NullHandleDateValTest ;
FlgDateValTest=is_valid(t_DateValTest, StdDateValTest, f_DateValTest);


 // initialise the rejected row variable
        RowRejected0 = 1;
// evaluate columns (no constraints) for link: 


//;
if (FlgDateValTest) {
	Std_Out_Lnk.DateValTest = date_from_string(StdDateValTest,f_DateValTest);
} else {
	Std_Out_Lnk.DateValTest = d_DateValTest;
}

//;
writerecord 0;
RowRejected0 = 0;
}
finish {
}
It gets compiled with warnings. When I try to run the dsjob, i get the below error. PS: The C++ code is emulating transform code

Code: Select all

main_program: Internal Error: (obj): transform/transform.C: 1845 
Traceback: assert.APT_FatalPath::pureAssertion(const char*,const char*,int)(??, ??, ??) at 0x9000000332da6a8
APT_TransformOperator::describeOperator()(??) at 0x90000003816bce0
APT_OperatorRep::wrapDescribeOperator()(??) at 0x90000003353cac4
APT_OperatorRep::checkComposite(APT_Step*)(??, ??) at 0x90000003354c374
APT_StepRep::sequenceAndCheck1Operators(APT_ErrorLog&)(??, ??) at 0x9000000337c8ea0
APT_StepRep::check()(??) at 0x9000000337c8bb0
step.APT_Step::check()(??) at 0x9000000337bb9f8
APT_OSL::createAndCheckStep(APT_OSL_SIL_StepSpec*,APT_ErrorLog&)(??, ??) at 0x9000000350a1b38
APT_ORCHESTRATE_main__FiPPc(??, ??) at 0x10000590c
APT_PMconductorMain(int(*)(int,char**))(??) at 0x900000033d60a14
APT_SharedMain(int,char**,int(*)(int,char**))(??, ??, ??) at 0x900000033d7a5ac
main(??, ??) at 0x10000d704
Post Reply