C++ Comand to compile a routine on solaris
Posted: Fri Sep 08, 2006 12:07 pm
Hi
I am trying to compile a C++ routine on solaris ,I used the command
g++ -O -fPIC mutiplyrtn.c -c -o mutiplyrtn.o , the object file is created ,after creating the routine through manger ,when used in transformer ,the job gets compiled but it fails at run time with error .
Transformer_3: Failed to load the library "V0S3_temp_Transformer_3.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 "V0S3_temp_Transformer_3": ld.so.1: osh: fatal: relocation error: file /opt/etl/Ascential/DataStage/Projects/BDR_DEVL/RT_BP3756.O/V0S3_temp_Transformer_3.so: symbol __1cIkeyWords6Fpc_0_: referenced symbol not found
Is it the right command to compile c++ code on soalris as I have some .o files and routines created by a contractor who left and they run fine
Thanks
Arif
I am trying to compile a C++ routine on solaris ,I used the command
g++ -O -fPIC mutiplyrtn.c -c -o mutiplyrtn.o , the object file is created ,after creating the routine through manger ,when used in transformer ,the job gets compiled but it fails at run time with error .
Transformer_3: Failed to load the library "V0S3_temp_Transformer_3.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 "V0S3_temp_Transformer_3": ld.so.1: osh: fatal: relocation error: file /opt/etl/Ascential/DataStage/Projects/BDR_DEVL/RT_BP3756.O/V0S3_temp_Transformer_3.so: symbol __1cIkeyWords6Fpc_0_: referenced symbol not found
Is it the right command to compile c++ code on soalris as I have some .o files and routines created by a contractor who left and they run fine
Thanks
Arif