On Thursday, 26 May 2016 11:37:02 PM AEST Christopher Samuel wrote:

> Which is really odd as the code already calls into the Slurm libraries
> for other functions such as slurm_hostlist_create(), etc.

Solved!  The slurm_showq code I'm hacking on is C++, not straight C, so I had 
to change my prototype in the header file from:

extern char *slurm_job_reason_string(enum job_state_reason inx);

to:

extern "C" char *slurm_job_reason_string(enum job_state_reason inx);

That extra "C" was all it took...

All the best,
Chris
-- 
 Christopher Samuel        Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computation Initiative
 Email: [email protected] Phone: +61 (0)3 903 55545
 http://www.vlsci.org.au/      http://twitter.com/vlsci

Reply via email to