[torqueusers] pbs_connect compiling error

Ai Niwaer anwar at cse.unl.edu
Fri Aug 3 22:26:23 MDT 2007


I have torque 2.1.8 running.

Compiling this code gives me "undefined reference to "pbs_connect" error
message.
How do I compile it? What libs did I miss?


#include "pbs_error.h"
#include "pbs_ifl.h"
#include "portability.h"
#include "mcom.h"
#include "cmds.h"
int main()
{
	int con;
  	struct batch_status *status, *p;
  	struct attrl *attr;
  	con=pbs_connect(NULL);
  	if (con<0)
		{
     		printf("pbs_errno.\n");
		exit(0);
		}
  	status = pbs_statque(con, NULL, NULL, NULL);
  	if (!status){		
     		printf("pbs_errno.\n");
		exit(0);
		}
   	pbs_statfree(status);

}



More information about the torqueusers mailing list