Trouble with WindRiver/WPILib

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.

Have you tried opening one of the sample projects and compiling it? My first thought is that your project does not include any of the libraries necessary and that writing '#include “WPILib.h” 'is giving you the error. Try compiling a sample project, if the problem persists then you may want to try another computer?

well in the sample i see one error and a couple of warnings. So just looking at the error it’s complaining that it can’t load socklib.h. A quick search in C:\WindRiver\vxworks-6.3 arget\h finds socklib.h in the directory C:\WindRiver\vxworks-6.3 arget\h\wrn\coreip so i will hazard a guess that you do not have that path included in your robot project.

Screenshot below is an example of the paths included on a recent project created on my machine. if you right click the project, click properties, click build properties and go to the paths tab - does yours match?

As another person suggested, if you create a new example project you’ll probably get all of that setup for you in the project.

http://dl.dropbox.com/u/61715345/windriver-paths.jpg

I’m still not entirely sure what was going on, but I added WPILib to my system path and rebooted and things seem to work now, so I’m not going to question it.

EDIT: OK, for the benefit of anyone with the same problem, what actually happened was that redirection directory (which I actually don’t know what exactly that is) was defaulted to PPC32diab, when apparently it needed to be PPC32gnu. Switching it to the right setting instantly fixed everything.