Sorry, but nothing obvious jumps out at me.
It compiles ok for me, and I am not too sure I understand the error in relation to the source you provided.
Do you have any include files in the source ?
Could you post the complete scratch.c file (please do that in a comment if you can rather a new message, it creates more work for the NI Guys, better to keep it all in the same thread).
Sorry, not much use to you at the moment,
Chris