in "niimaq1394.h", imaq1394GetImage2() function is not defined if "nivision.h" has not already been included.
this dependency is not documented anywhere, and the error that results can be quite disturbing. especially if you consider like me that acquisition comes before processing, thus end up writing:
#include "niimap1394.h"
#include "nivision.h"