C++ Routine error

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
vbeeram
Participant
Posts: 63
Joined: Fri Apr 09, 2004 9:40 pm
Contact:

C++ Routine error

Post by vbeeram »

Hi ,

I wrote sample C++ routine , compiled with CC command and calling into Transformer. When i ran the job getting following error.

I am taking as external function(type) and object type as Object(Not library).Am i following in the correct way?Need help


XFMR_Matched_Trade: Failed to load the library "V2S0_Get_trades_dd_XFMR_Matched_Trade.so"; either the directory containing the library file
is not on the library search path, or the library was compiled on a system
that is incompatible with this system: Could not load "V2S0_Get_trades_dd_XFMR_Matched_Trade": ld.so.1: osh: fatal: relocation error:

file /opt/di/Ascential/DataStage/Projects/ART/RT_BP164.O/V2S0_Get_trades_dd_XFMR_Matched_Trade.so: symbol __1cFtest16Fpc_0_: referenced symbol not found.






Thanks in advance
Beeram
dsusr
Premium Member
Premium Member
Posts: 104
Joined: Sat Sep 03, 2005 11:30 pm

Re: C++ Routine error

Post by dsusr »

Just check with what version of g++ compiler you have compiled the c++ code. Because this problem comes because of incompatibility of the c++ compiler version.

Also just compile the c++ code using g++ -c <C file>.

dsusr
Post Reply