Nivision.h Compiler Errors

I wrote a script using the Vision Assistant, and exported the C code to run in WindRiver. When I try to build the project however, I get an enormous amount of error messages. They’re not from the C file, no, they’re from nivision.h. There are >1000 errors that get printed trying to compile nivision.h. What should I do? I did try to just implement the nivision libraries by myself, and I get the same compiler errors. Every time it tries to compile, it just gives a huge pile of errors. Help!
Thanks in advance!

While this is an old post, the answer is still useful. (And I had the same problem today.)
Answer: Set the build environment to PPC603gnu