Test Program:---------------------------------------------------------------#include <stdio.h>#include <lsf/lsf.h>void main(){char *clustername;clustername = ls_getclustername();if (clustername == NULL) {ls_perror("ls_getclustername");exit(-1);}printf("My cluster name is: <%s>\n", clustername);exit(0);}
For example, in Visual C++ 2005, the size of the time_t data type was changed from 32 bits to 64 bits. However, the LSF package is built with VC60 (in which size of time_t data type is 32 bits). To solve, choose one of the two following solutions:
To change the build environment from 32 to 64 bits, add the build option -D"WIN32".