Routine Compiling

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
Raamc
Premium Member
Premium Member
Posts: 87
Joined: Mon Aug 20, 2007 9:08 am

Routine Compiling

Post by Raamc »

Hi,

I have written a CPP program for implementing the Parallel routines on WINDOWS machine. I tested my CPP program with VC++ and it is working fine.

Now i need to create a .o file for linking it to the Parallel routine. I am trying to compile my code with cxx compiler on Windows command prompt. My command(below) just running without creating .o file.

cxx -O -IC:/IBM/InformationServer/Server/PXEngine/include -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c C:/Ramm/First.cpp -o

MS .NET and VISUAL STUDIO is installed on my machine.

Can any one please help me to compile the CPP program into .o file?

Thanks,
--Raam.
Thanks,
Raamc
sharma
Premium Member
Premium Member
Posts: 46
Joined: Mon Dec 24, 2007 2:16 pm

Post by sharma »

Same thing happens with me when i am trying to compile my code in UNIX.

This is the command i used:

/opt/SUNWspro/bin/CC -dalign -O -PIC -librar=iostream -c myhelloworld.cpp

And the error i am getting is :

"myhelloworld.cpp", line 6: Error: Could not open include file<apt_framework/osh_name.h>.
"myhelloworld.cpp", line 7: Error: Could not open include file<apt_framework/coperator.h>.
"myhelloworld.cpp", line 9: Error: Could not open include file<apt_framework/step.h>.
"myhelloworld.cpp", line 10: Error: Could not open include file<apt_framework/adapter.h>.
"myhelloworld.cpp", line 11: Error: Could not open include file<apt_framework/schema.h>.
"myhelloworld.cpp", line 12: Error: Could not open include file<apt_framework/fieldsel.h>.
"myhelloworld.cpp", line 13: Error: Could not open include file<apt_framework/cursor.h>.
"myhelloworld.cpp", line 14: Error: Could not open include file<apt_framework/accessor.h>.
"myhelloworld.cpp", line 15: Error: Could not open include file<apt_framework/interface.h>.
"myhelloworld.cpp", line 16: Error: Could not open include file<apt_framework/record.h>.
"myhelloworld.cpp", line 17: Error: Could not open include file<apt_framework/dataset.h>.
"myhelloworld.cpp", line 18: Error: Could not open include file<apt_util/errlog.h>.
"myhelloworld.cpp", line 20: Error: Could not open include file<apt_util/parse_err.h>.
"myhelloworld.cpp", line 21: Error: Could not open include file<apt_util/errind.h>.
"myhelloworld.cpp", line 23: Error: Could not open include file<apt_util/message.h>.
"myhelloworld.cpp", line 30: Error: APT_Error is not defined.


Please help me as well.
Nirmal Sharma
sharma
Premium Member
Premium Member
Posts: 46
Joined: Mon Dec 24, 2007 2:16 pm

Post by sharma »

Same thing happens with me when i am trying to compile my code in UNIX.

This is the command i used:

/opt/SUNWspro/bin/CC -dalign -O -PIC -librar=iostream -c myhelloworld.cpp

And the error i am getting is :

"myhelloworld.cpp", line 6: Error: Could not open include file<apt_framework/osh_name.h>.
"myhelloworld.cpp", line 7: Error: Could not open include file<apt_framework/coperator.h>.
"myhelloworld.cpp", line 9: Error: Could not open include file<apt_framework/step.h>.
"myhelloworld.cpp", line 10: Error: Could not open include file<apt_framework/adapter.h>.
"myhelloworld.cpp", line 11: Error: Could not open include file<apt_framework/schema.h>.
"myhelloworld.cpp", line 12: Error: Could not open include file<apt_framework/fieldsel.h>.
"myhelloworld.cpp", line 13: Error: Could not open include file<apt_framework/cursor.h>.
"myhelloworld.cpp", line 14: Error: Could not open include file<apt_framework/accessor.h>.
"myhelloworld.cpp", line 15: Error: Could not open include file<apt_framework/interface.h>.
"myhelloworld.cpp", line 16: Error: Could not open include file<apt_framework/record.h>.
"myhelloworld.cpp", line 17: Error: Could not open include file<apt_framework/dataset.h>.
"myhelloworld.cpp", line 18: Error: Could not open include file<apt_util/errlog.h>.
"myhelloworld.cpp", line 20: Error: Could not open include file<apt_util/parse_err.h>.
"myhelloworld.cpp", line 21: Error: Could not open include file<apt_util/errind.h>.
"myhelloworld.cpp", line 23: Error: Could not open include file<apt_util/message.h>.
"myhelloworld.cpp", line 30: Error: APT_Error is not defined.


Please help me as well.
Nirmal Sharma
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

There are several posts plus some blogs on how to do this. Do a search.
Mamu Kim
Raamc
Premium Member
Premium Member
Posts: 87
Joined: Mon Aug 20, 2007 9:08 am

Post by Raamc »

I tried to compile my routine using the CXX compiler. While compiling it is giving the error as "Compiler "cl" not found."

I have MS Visual Studio 2005 is installed on my machine.

Even i give cxx and give enter on command line, it is showing the same ERROR.

Can any one help me how to fix this CL compiler issue?
Thanks,
Raamc
Post Reply