HI,
can any one help me how to write a c++ routine using api functions in parallel job.i wrote the code like below
#include <dsapi.h>
DSPROJECT DSOpenProject(
char *ProjectName
);
DSJOB DSOpenJob(
DSPROJECT ProjectHandle,
char *JobName
);
int DSGetJobInfo(
DSJOB JobHandle,
int InfoType,
DSJOBINFO *ReturnInfo
);
when i compiled this code i am getting the fowlling error
"dsApi.C", line 1.10: 1540-0836 (S) The #include file <dsapi.h> is not found.
make: 1254-004 The error code from the last command is 1.
Using API functions in parallel rouitne
Moderators: chulett, rschirm, roy
Re: Using API functions in parallel rouitne
Not sure but may be $INCLUDE DSINCLUDE DSAPI.Humamahes wrote:
#include <dsapi.h>
when i compiled this code i am getting the fowlling error
"dsApi.C", line 1.10: 1540-0836 (S) The #include file <dsapi.h> is not found.
make: 1254-004 The error code from the last command is 1.
If women didn't exist, all the money in the world would have no meaning.
-- Aristotle Onassis
-- Aristotle Onassis
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: Using API functions in parallel rouitne
If you write a c++ routine using api functions ,you must use "dsapi.h" andumamahes wrote: "dsApi.C", line 1.10: 1540-0836 (S) The #include file <dsapi.h> is not found.
make: 1254-004 The error code from the last command is 1.
"vmdsapi.so"
dsapi.h is located in the directory $DSHOME/include
vmdsapi.so is located in the directory $DSHOME/lib
Re: Using API functions in parallel rouitne
note:you must use correct parameter to compile the *.C ,otherwise DS can't execute the routineumamahes wrote: "dsApi.C", line 1.10: 1540-0836 (S) The #include file <dsapi.h> is not found.
make: 1254-004 The error code from the last command is 1.