So after getting WindRive 3.3.1 and the newest update of WPILib installed on my Windows 8 laptop and trying to write some code, I find that anything I write fails with bizarre errors in the WPILib files. For example, when I try to build a project consisting of a single .cpp file whose only line of code is
#include "WPILib.h"
the errors I get include
"C:/WindRiver/vxworks-6.3/target/h/WPILib/Vision/AxisCamera.h", line 12: catastrophic error (etoa:4005):
could not open source file "sockLib.h"
#include <sockLib.h>
^
"C:/WindRiver/vxworks-6.3/target/h/WPILib/networktables2/util/IllegalStateException.h", line 17: warning (etoa:4997):
function "std::exception::what() const" is hidden by
"IllegalStateException::what" -- virtual function override intended?
const char* what(){return message.c_str();};
^
"C:/WindRiver/vxworks-6.3/target/h/WPILib/ChipObject/tSystemInterface.h", line 17: warning (etoa:4815):
type qualifier on return type is meaningless
virtual const uint32_t * const getExpectedFPGASignature()=0;
and many other equally cryptic errors and warnings, followed by the standard
1 catastrophic error detected in the compilation of "C:/WindRiver/workspace/TestProject/Test.cpp".
Compilation terminated.
C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [TestProject_partialImage/Debug/Objects/TestProject/Test.o] Error 1
Build Failed in Project 'TestProject' (Process Exit Value was 2): 2013-01-21 19:34:48 (Elapsed Time: 00:04)
I’ve tried re-running the WPILib update, starting a new project in a new workspace, running the program in Windows 7 and googling the error messages in hope of a revelation, with no success. None of these weird errors are showing up in the standard C libraries. I have no idea what the problem is, and neither do any other programmers or mentors. If any of you guys have any inkling as to how I could fix this, help is greatly appreciated.