routines compile
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 236
- Joined: Sun Apr 01, 2007 7:41 am
- Location: Michigan
routines compile
how to compile routines manually through manager,as we have moved routine folder from DEVELOPMENT to QA,routines are in locked position,i didnt find any manual option to compile routines through manager
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Parallel routines are not compiled from within DataStage. They are totally external C++ source code, and must be compiled using the appropriate C++ compiler and linked using the appropriate linker at the operating system level.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
If you have written the routine and saved it as .c or .cpp file you can compile using following process.
Pick APT_COMPILER variable and APT_COMPILEROPT variable values from administrator. For me (linux system) these are g++ and -O -fPIC -Wno-deprecated -c.
Now construct the syntax in the following order, substituting the values found in your project environment
For Me:
You already have the InputProg.c file written and after executing it you would get compiled code in .o file.
This will definitely help you compiling your code. But, its good to learn how the comiler works in your sustem.
Pick APT_COMPILER variable and APT_COMPILEROPT variable values from administrator. For me (linux system) these are g++ and -O -fPIC -Wno-deprecated -c.
Now construct the syntax in the following order, substituting the values found in your project environment
Code: Select all
$APT_COMPILER $APT_COMPILEROPT InputProg.c -o OutputProg.o
Code: Select all
g++ -O -fPIC -Wno-deprecated -c InputProg.c -o OutputProg.o
This will definitely help you compiling your code. But, its good to learn how the comiler works in your sustem.
Regards
Palas
Palas