Wind River build environment

Is there any custom configuration I need to set for Wind River environment after installing it? After installing Wind River and applying the WorkBench update, I copied over last year’s project, stripe out the Breakaway code and so it is essentially a basic robot template. When compiling the project, it gave me tons of errors. All of them pointed to the WPI library. For example, illegal typedef declaration in AxisCameraParams.h.
Another example: it is complaining enumeration value out of int range for nvision.h


typedef enum PolarityType_enum {
    IMAQ_EDGE_RISING              = 1,           //The edge is a rising edge.
    IMAQ_EDGE_FALLING             = -1,          //The edge is a falling edge.
    IMAQ_POLARITY_TYPE_SIZE_GUARD = 0xFFFFFFFF   
} PolarityType;

I am guessing it may have the wrong platform default??? I remember FIRST has a document last year showing you how to configure Wind River but I can’t find similar doc this year.


Build Started in Project 'Logomotion':   2011-01-19 03:53:50
Generation of makefiles started.
Generation of makefiles finished (Elapsed Time: 00:00).
Platform: Wind River VxWorks 6.3
Command: make --no-print-directory BUILD_SPEC=PPC32diab DEBUG_MODE=1 TRACE=1
Working Directory: C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/PPC32diab
if  ! -d "`dirname "Logomotion_partialImage/Debug/Objects/Logomotion/DashboardDataFormat.o"`" ]; then mkdir -p "`dirname "Logomotion_partialImage/Debug/Objects/Logomotion/DashboardDataFormat.o"`"; fi;echo "building Logomotion_partialImage/Debug/Objects/Logomotion/DashboardDataFormat.o"; dcc -g -tPPCFH:vxworks63 -Xstmw-slow -DPPC32_fp60x -W:c:,-Xclib-optim-off -Xansi -Xlocal-data-area-static-only -Xforce-declarations  -Xmake-dependency=0xd  -IC:/WindRiver/vxworks-6.3/target/h -IC:/WindRiver/vxworks-6.3/target/h/WPIlib -IC:/WindRiver/vxworks-6.3/target/h/wrn/coreip   -DCPU=PPC32 -DTOOL_FAMILY=diab -DTOOL=diab -D_WRS_KERNEL    -o "Logomotion_partialImage/Debug/Objects/Logomotion/DashboardDataFormat.o" -c "C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/DashboardDataFormat.cpp"
building Logomotion_partialImage/Debug/Objects/Logomotion/DashboardDataFormat.o
"C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/DashboardDataFormat.cpp", warning (etoa:1564): bad #pragma pack
"C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/DashboardDataFormat.cpp", warning (etoa:1563): bad pragma
"C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/DashboardDataFormat.cpp", warning (etoa:1564): bad #pragma pack
"C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/DashboardDataFormat.cpp", warning (etoa:1563): bad pragma
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/Vision/AxisCameraParams.h", line 26: warning (etoa:4375): 
          declaration requires a typedef name
  	typedef enum Exposure_t {kExposure_Automatic, kExposure_Hold, kExposure_FlickerFree50Hz, kExposure_FlickerFree60Hz};
  	                                                                                                                   ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/Vision/AxisCameraParams.h", line 27: warning (etoa:4375): 
          declaration requires a typedef name
  	typedef enum WhiteBalance_t {kWhiteBalance_Automatic, kWhiteBalance_Hold, kWhiteBalance_FixedOutdoor1, kWhiteBalance_FixedOutdoor2, kWhiteBalance_FixedIndoor, kWhiteBalance_FixedFlourescent1, kWhiteBalance_FixedFlourescent2};
  	                                                                                                                                                                                                                                ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/Vision/AxisCameraParams.h", line 28: warning (etoa:4375): 
          declaration requires a typedef name
  	typedef enum Resolution_t {kResolution_640x480, kResolution_640x360, kResolution_320x240, kResolution_160x120};
  	                                                                                                              ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/Vision/AxisCameraParams.h", line 29: warning (etoa:4375): 
          declaration requires a typedef name
  	typedef enum Rotation_t {kRotation_0, kRotation_180};
  	                                                    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 816: error (etoa:4066): 
          enumeration value is out of "int" range
  } PolarityType;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 965: error (etoa:4066): 
          enumeration value is out of "int" range
  } Tool;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1145: error (etoa:4066): 
          enumeration value is out of "int" range
  } BarcodeType;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1340: error (etoa:4066): 
          enumeration value is out of "int" range
  } DataMatrixMirrorMode;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1352: error (etoa:4066): 
          enumeration value is out of "int" range
  } DataMatrixCellSampleSize;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1365: error (etoa:4066): 
          enumeration value is out of "int" range
  } DataMatrixCellFilterMode;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1372: error (etoa:4066): 
          enumeration value is out of "int" range
  } DataMatrixPolarity;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1384: error (etoa:4066): 
          enumeration value is out of "int" range
  } DataMatrixECC;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1393: error (etoa:4066): 
          enumeration value is out of "int" range
  } DataMatrixDemodulationMode;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1400: error (etoa:4066): 
          enumeration value is out of "int" range
  } DataMatrixCellFillMode;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1431: error (etoa:4066): 
          enumeration value is out of "int" range
  } QRDemodulationMode;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1532: error (etoa:4066): 
          enumeration value is out of "int" range
  } QRCellSampleSize;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1550: error (etoa:4066): 
          enumeration value is out of "int" range
  } QRMirrorMode;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1557: error (etoa:4066): 
          enumeration value is out of "int" range
  } QRPolarities;
    ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 1602: error (etoa:4066): 
          enumeration value is out of "int" range
  } QRCellFilterMode;
    ^
"C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/DashboardDataFormat.cpp", warning (etoa:1564): bad #pragma pack
"C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/DashboardDataFormat.cpp", warning (etoa:1563): bad pragma
"C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/DashboardDataFormat.cpp", warning (etoa:1564): bad #pragma pack
"C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/DashboardDataFormat.cpp", warning (etoa:1563): bad pragma
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3747: error (etoa:4018): 
          expected a ")"
  typedef void (IMAQ_CALLBACK* EventCallback)(WindowEventType event, int windowNumber, Tool tool, Rect rect);
                             ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3754: warning (etoa:4161): 
          unrecognized #pragma
  #pragma const_seg("IMAQVisionColorConstants")
          ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3764: warning (etoa:4161): 
          unrecognized #pragma
  #pragma const_seg()
          ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3780: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int   IMAQ_STDCALL imaqAreToolsContextSensitive(int* sensitive);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3780: error (etoa:4020): 
          identifier "dllimport" is undefined
  IMAQ_FUNC int   IMAQ_STDCALL imaqAreToolsContextSensitive(int* sensitive);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3780: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int   IMAQ_STDCALL imaqAreToolsContextSensitive(int* sensitive);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3781: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int   IMAQ_STDCALL imaqCloseWindow(int windowNumber);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3781: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int   IMAQ_STDCALL imaqCloseWindow(int windowNumber);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3781: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int   IMAQ_STDCALL imaqCloseWindow(int windowNumber);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3782: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int   IMAQ_STDCALL imaqDisplayImage(const Image* image, int windowNumber, int resize);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3782: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int   IMAQ_STDCALL imaqDisplayImage(const Image* image, int windowNumber, int resize);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3782: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int   IMAQ_STDCALL imaqDisplayImage(const Image* image, int windowNumber, int resize);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3783: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int   IMAQ_STDCALL imaqGetLastKey(char* keyPressed, int* windowNumber, int* modifiers);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3783: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int   IMAQ_STDCALL imaqGetLastKey(char* keyPressed, int* windowNumber, int* modifiers);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3783: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int   IMAQ_STDCALL imaqGetLastKey(char* keyPressed, int* windowNumber, int* modifiers);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3784: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC void* IMAQ_STDCALL imaqGetSystemWindowHandle(int windowNumber);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3784: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC void* IMAQ_STDCALL imaqGetSystemWindowHandle(int windowNumber);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3784: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC void* IMAQ_STDCALL imaqGetSystemWindowHandle(int windowNumber);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3785: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int   IMAQ_STDCALL imaqGetWindowCenterPos(int windowNumber, Point* centerPosition);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3785: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int   IMAQ_STDCALL imaqGetWindowCenterPos(int windowNumber, Point* centerPosition);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3785: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int   IMAQ_STDCALL imaqGetWindowCenterPos(int windowNumber, Point* centerPosition);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3786: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int   IMAQ_STDCALL imaqSetToolContextSensitivity(int sensitive);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3786: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int   IMAQ_STDCALL imaqSetToolContextSensitivity(int sensitive);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3786: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int   IMAQ_STDCALL imaqSetToolContextSensitivity(int sensitive);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3787: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int   IMAQ_STDCALL imaqShowWindow(int windowNumber, int visible);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3787: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int   IMAQ_STDCALL imaqShowWindow(int windowNumber, int visible);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3787: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int   IMAQ_STDCALL imaqShowWindow(int windowNumber, int visible);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3792: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC Image* IMAQ_STDCALL imaqCopyFromRing(SESSION_ID sessionID, Image* image, int imageToCopy, int* imageNumber, Rect rect);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3792: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC Image* IMAQ_STDCALL imaqCopyFromRing(SESSION_ID sessionID, Image* image, int imageToCopy, int* imageNumber, Rect rect);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3792: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC Image* IMAQ_STDCALL imaqCopyFromRing(SESSION_ID sessionID, Image* image, int imageToCopy, int* imageNumber, Rect rect);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3793: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC Image* IMAQ_STDCALL imaqEasyAcquire(const char* interfaceName);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3793: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC Image* IMAQ_STDCALL imaqEasyAcquire(const char* interfaceName);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3793: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC Image* IMAQ_STDCALL imaqEasyAcquire(const char* interfaceName);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3794: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC Image* IMAQ_STDCALL imaqExtractFromRing(SESSION_ID sessionID, int imageToExtract, int* imageNumber);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3794: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC Image* IMAQ_STDCALL imaqExtractFromRing(SESSION_ID sessionID, int imageToExtract, int* imageNumber);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3794: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC Image* IMAQ_STDCALL imaqExtractFromRing(SESSION_ID sessionID, int imageToExtract, int* imageNumber);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3795: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC Image* IMAQ_STDCALL imaqGrab(SESSION_ID sessionID, Image* image, int immediate);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3795: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC Image* IMAQ_STDCALL imaqGrab(SESSION_ID sessionID, Image* image, int immediate);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3795: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC Image* IMAQ_STDCALL imaqGrab(SESSION_ID sessionID, Image* image, int immediate);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3796: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int    IMAQ_STDCALL imaqReleaseImage(SESSION_ID sessionID);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3796: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int    IMAQ_STDCALL imaqReleaseImage(SESSION_ID sessionID);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3796: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int    IMAQ_STDCALL imaqReleaseImage(SESSION_ID sessionID);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3797: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int    IMAQ_STDCALL imaqSetupGrab(SESSION_ID sessionID, Rect rect);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3797: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int    IMAQ_STDCALL imaqSetupGrab(SESSION_ID sessionID, Rect rect);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3797: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int    IMAQ_STDCALL imaqSetupGrab(SESSION_ID sessionID, Rect rect);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3798: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int    IMAQ_STDCALL imaqSetupRing(SESSION_ID sessionID, Image** images, int numImages, int skipCount, Rect rect);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3798: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int    IMAQ_STDCALL imaqSetupRing(SESSION_ID sessionID, Image** images, int numImages, int skipCount, Rect rect);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3798: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int    IMAQ_STDCALL imaqSetupRing(SESSION_ID sessionID, Image** images, int numImages, int skipCount, Rect rect);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3799: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int    IMAQ_STDCALL imaqSetupSequence(SESSION_ID sessionID, Image** images, int numImages, int skipCount, Rect rect);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3799: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int    IMAQ_STDCALL imaqSetupSequence(SESSION_ID sessionID, Image** images, int numImages, int skipCount, Rect rect);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3799: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int    IMAQ_STDCALL imaqSetupSequence(SESSION_ID sessionID, Image** images, int numImages, int skipCount, Rect rect);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3800: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC Image* IMAQ_STDCALL imaqSnap(SESSION_ID sessionID, Image* image, Rect rect);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3800: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC Image* IMAQ_STDCALL imaqSnap(SESSION_ID sessionID, Image* image, Rect rect);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3800: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC Image* IMAQ_STDCALL imaqSnap(SESSION_ID sessionID, Image* image, Rect rect);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3801: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int    IMAQ_STDCALL imaqStartAcquisition(SESSION_ID sessionID);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3801: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int    IMAQ_STDCALL imaqStartAcquisition(SESSION_ID sessionID);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3801: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int    IMAQ_STDCALL imaqStartAcquisition(SESSION_ID sessionID);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3802: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int    IMAQ_STDCALL imaqStopAcquisition(SESSION_ID sessionID);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3802: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int    IMAQ_STDCALL imaqStopAcquisition(SESSION_ID sessionID);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3802: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int    IMAQ_STDCALL imaqStopAcquisition(SESSION_ID sessionID);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3807: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqAbsoluteDifference(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3807: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqAbsoluteDifference(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3807: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqAbsoluteDifference(Image* dest, const Image* sourceA, const Image* sourceB);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3808: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqAbsoluteDifferenceConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3808: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqAbsoluteDifferenceConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3808: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqAbsoluteDifferenceConstant(Image* dest, const Image* source, PixelValue value);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3809: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqAdd(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3809: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqAdd(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3809: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqAdd(Image* dest, const Image* sourceA, const Image* sourceB);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3810: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqAddConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3810: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqAddConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3810: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqAddConstant(Image* dest, const Image* source, PixelValue value);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3811: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqAverage(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3811: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqAverage(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3811: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqAverage(Image* dest, const Image* sourceA, const Image* sourceB);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3812: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqAverageConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3812: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqAverageConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3812: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqAverageConstant(Image* dest, const Image* source, PixelValue value);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3813: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqDivide2(Image* dest, const Image* sourceA, const Image* sourceB, RoundingMode roundingMode);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3813: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqDivide2(Image* dest, const Image* sourceA, const Image* sourceB, RoundingMode roundingMode);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3813: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqDivide2(Image* dest, const Image* sourceA, const Image* sourceB, RoundingMode roundingMode);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3814: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqDivideConstant2(Image* dest, const Image* source, PixelValue value, RoundingMode roundingMode);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3814: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqDivideConstant2(Image* dest, const Image* source, PixelValue value, RoundingMode roundingMode);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3814: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqDivideConstant2(Image* dest, const Image* source, PixelValue value, RoundingMode roundingMode);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3815: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqMax(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3815: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqMax(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3815: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqMax(Image* dest, const Image* sourceA, const Image* sourceB);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3816: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqMaxConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3816: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqMaxConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3816: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqMaxConstant(Image* dest, const Image* source, PixelValue value);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3817: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqMin(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3817: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqMin(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3817: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqMin(Image* dest, const Image* sourceA, const Image* sourceB);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3818: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqMinConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3818: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqMinConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3818: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqMinConstant(Image* dest, const Image* source, PixelValue value);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3819: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqModulo(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3819: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqModulo(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3819: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqModulo(Image* dest, const Image* sourceA, const Image* sourceB);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3820: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqModuloConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3820: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqModuloConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3820: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqModuloConstant(Image* dest, const Image* source, PixelValue value);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3821: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqMulDiv(Image* dest, const Image* sourceA, const Image* sourceB, float value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3821: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqMulDiv(Image* dest, const Image* sourceA, const Image* sourceB, float value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3821: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqMulDiv(Image* dest, const Image* sourceA, const Image* sourceB, float value);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3822: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqMultiply(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3822: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqMultiply(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3822: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqMultiply(Image* dest, const Image* sourceA, const Image* sourceB);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3823: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqMultiplyConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3823: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqMultiplyConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3823: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqMultiplyConstant(Image* dest, const Image* source, PixelValue value);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3824: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqSubtract(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3824: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqSubtract(Image* dest, const Image* sourceA, const Image* sourceB);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3824: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqSubtract(Image* dest, const Image* sourceA, const Image* sourceB);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3825: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int IMAQ_STDCALL imaqSubtractConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3825: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int IMAQ_STDCALL imaqSubtractConstant(Image* dest, const Image* source, PixelValue value);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3825: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int IMAQ_STDCALL imaqSubtractConstant(Image* dest, const Image* source, PixelValue value);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3830: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC CaliperReport*         IMAQ_STDCALL imaqCaliperTool(const Image* image, const Point* points, int numPoints, const EdgeOptions* edgeOptions, const CaliperOptions* caliperOptions, int* numEdgePairs);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3830: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC CaliperReport*         IMAQ_STDCALL imaqCaliperTool(const Image* image, const Point* points, int numPoints, const EdgeOptions* edgeOptions, const CaliperOptions* caliperOptions, int* numEdgePairs);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3830: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC CaliperReport*         IMAQ_STDCALL imaqCaliperTool(const Image* image, const Point* points, int numPoints, const EdgeOptions* edgeOptions, const CaliperOptions* caliperOptions, int* numEdgePairs);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3831: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC ConcentricRakeReport2* IMAQ_STDCALL imaqConcentricRake2(Image* image, ROI* roi, ConcentricRakeDirection direction, EdgeProcess process, int stepSize, EdgeOptions2* edgeOptions);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3831: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC ConcentricRakeReport2* IMAQ_STDCALL imaqConcentricRake2(Image* image, ROI* roi, ConcentricRakeDirection direction, EdgeProcess process, int stepSize, EdgeOptions2* edgeOptions);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3831: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC ConcentricRakeReport2* IMAQ_STDCALL imaqConcentricRake2(Image* image, ROI* roi, ConcentricRakeDirection direction, EdgeProcess process, int stepSize, EdgeOptions2* edgeOptions);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3832: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC ExtremeReport*         IMAQ_STDCALL imaqDetectExtremes(const double* pixels, int numPixels, DetectionMode mode, const DetectExtremesOptions* options, int* numExtremes);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3832: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC ExtremeReport*         IMAQ_STDCALL imaqDetectExtremes(const double* pixels, int numPixels, DetectionMode mode, const DetectExtremesOptions* options, int* numExtremes);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3832: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC ExtremeReport*         IMAQ_STDCALL imaqDetectExtremes(const double* pixels, int numPixels, DetectionMode mode, const DetectExtremesOptions* options, int* numExtremes);
            ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3833: warning (etoa:4837): 
          omission of explicit type is nonstandard ("int" assumed)
  IMAQ_FUNC int                    IMAQ_STDCALL imaqDetectRotation(const Image* referenceImage, const Image* testImage, PointFloat referenceCenter, PointFloat testCenter, int radius, float precision, double* angle);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3833: error (etoa:4247): 
          variable "__declspec" has already been defined
  IMAQ_FUNC int                    IMAQ_STDCALL imaqDetectRotation(const Image* referenceImage, const Image* testImage, PointFloat referenceCenter, PointFloat testCenter, int radius, float precision, double* angle);
  ^
"C:/WindRiver/vxworks-6.3/target/h/WPIlib/nivision.h", line 3833: error (etoa:4065): 
          expected a ";"
  IMAQ_FUNC int                    IMAQ_STDCALL imaqDetectRotation(const Image* referenceImage, const Image* testImage, PointFloat referenceCenter, PointFloat testCenter, int radius, float precision, double* angle);
            ^
Error limit reached.
100 errors detected in the compilation of "C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/DashboardDataFormat.cpp".
Compilation terminated.
C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [Logomotion_partialImage/Debug/Objects/Logomotion/DashboardDataFormat.o] Error 1
Build Failed in Project 'Logomotion' (Process Exit Value was 2):   2011-01-19 03:53:52   (Elapsed Time: 00:03)

If what you’re after is a basic robot project, why did you copy the old project?

It’s not basic. We have our own library that we are including. Besides, we are using last year’s robot to test line following while the build team is buidling the new robot. So what I mean by stripping out last year’s code is really stripping out Breakaway specific code. But we still have the basic drive code.

Perhaps you could go over your installation and build procedure so far.

I believe you’re referring the documentation here,
http://firstforge.wpi.edu/sf/docman/do/listDocuments/projects.wpilib/docman.root.c_and_java_documentation. Specifically this document, http://firstforge.wpi.edu/sf/docman/do/downloadDocument/projects.wpilib/docman.root.c_and_java_documentation/doc1197/1.

I have attached it for convenience but FIRST Forge registration is free and encouraged.

GettingStartedWithC.pdf (1020 KB)


GettingStartedWithC.pdf (1020 KB)

Thank you for the pointer. That may be the document I am looking for. I will scan through it tonight to see if it contains information that will solve our issues.

I finally figured out what caused all the errors. Apparently, Wind River by default enabled multiple platforms (PPC32diab, PPC32gnu, PPC603diab and PPC603gnu). If I unchecked everything except for PPC603gnu. All the wierd errors are gone. BTW, is there a document showing me what to pick on the million configurations Project Properties offered me? I used to assume if no document tells me anything, it must be okay to take the default. But apparently not for this case.
After fixing some typos in the code. I was able to compile the project almost error free. However, I still got a few errors that got me scratching my head. For example, it complained about the line: START_ROBOT_CLASS(MyRobot); with the following errors.


Logomotion_partialImage/Debug/Objects/main.o(.text+0x0): In function `FRC_userClassFactory()':
C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:347: multiple definition of `FRC_userClassFactory()'
Logomotion_partialImage/Debug/Objects/Logomotion/main.o(.text+0x0):C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:347: first defined here
Logomotion_partialImage/Debug/Objects/main.o(.text+0x134): In function `FRC_UserProgram_StartupLibraryInit':
C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:471: multiple definition of `FRC_UserProgram_StartupLibraryInit'
Logomotion_partialImage/Debug/Objects/Logomotion/main.o(.text+0x134):C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:471: first defined here
Logomotion_partialImage/Debug/Objects/main.o(.text+0x224): In function `global constructors keyed to FRC_userClassFactory()':
C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:472: multiple definition of `global constructors keyed to FRC_userClassFactory()'
Logomotion_partialImage/Debug/Objects/Logomotion/main.o(.text+0x224):C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:472: first defined here
Logomotion_partialImage/Debug/Objects/main.o(.text+0x26c): In function `global destructors keyed to FRC_userClassFactory()':
C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:473: multiple definition of `global destructors keyed to FRC_userClassFactory()'
Logomotion_partialImage/Debug/Objects/Logomotion/main.o(.text+0x26c):C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:473: first defined here
collect2: ld returned 256 exit status
if  ! -d "`dirname "Logomotion/Debug/Logomotion.out"`" ]; then mkdir -p "`dirname "Logomotion/Debug/Logomotion.out"`"; fi;echo "building Logomotion/Debug/Logomotion.out";rm -f "Logomotion/Debug/Logomotion.out";nmppc Logomotion_partialImage/Debug/Logomotion_partialImage.o  | tclsh C:/WindRiver/vxworks-6.3/host/resource/hutils/tcl/munch.tcl -c ppc > Logomotion/Debug/ctdt.c; ccppc -g -mcpu=603 -mstrict-align -mno-implicit-fp -mlongcall -fdollars-in-identifiers -Wall  -IC:/WindRiver/vxworks-6.3/target/h -IC:/WindRiver/vxworks-6.3/target/h/wrn/coreip -IC:/WindRiver/vxworks-6.3/target/h/WPIlib   -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL     -o Logomotion/Debug/ctdt.o -c Logomotion/Debug/ctdt.c;%l  inkerprefix% ccppc -r -nostdlib -Wl,-X -T C:/WindRiver/vxworks-6.3/target/h/tool/gnu/ldscripts/link.OUT -o "Logomotion/Debug/Logomotion.out" Logomotion/Debug/ctdt.o Logomotion_partialImage/Debug/Logomotion_partialImage.o       && if  "0" = "1" ]; then plink "Logomotion/Debug/Logomotion.out";fi
building Logomotion/Debug/Logomotion.out
nmppc: 'Logomotion_partialImage/Debug/Logomotion_partialImage.o': No such file
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\make209613.sh: %l: command not found
C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [Logomotion/Debug/Logomotion.out] Error 127
Build Failed in Project 'Logomotion' (Process Exit Value was 2):   2011-01-20 22:28:32   (Elapsed Time: 00:04)

If I commented out the line, I got the following error that it couldn’t generate the out file (probably because I commented out the START_ROBOT_CLASS line:


Build Started in Project 'Logomotion':   2011-01-20 22:41:39
Generation of makefiles started.
Generation of makefiles finished (Elapsed Time: 00:00).
Platform: Wind River VxWorks 6.3
Command: make --no-print-directory BUILD_SPEC=PPC603gnu DEBUG_MODE=1 TRACE=1
Working Directory: C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/PPC603gnu
if  ! -d "`dirname "Logomotion_partialImage/Debug/Objects/Logomotion/main.o"`" ]; then mkdir -p "`dirname "Logomotion_partialImage/Debug/Objects/Logomotion/main.o"`"; fi;echo "building Logomotion_partialImage/Debug/Objects/Logomotion/main.o"; ccppc -g -mcpu=603 -mstrict-align -mno-implicit-fp -mlongcall -ansi -Wall  -MD -MP  -IC:/WindRiver/vxworks-6.3/target/h -IC:/WindRiver/vxworks-6.3/target/h/wrn/coreip -IC:/WindRiver/vxworks-6.3/target/h/WPIlib   -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL    -o "Logomotion_partialImage/Debug/Objects/Logomotion/main.o" -c "C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp"
building Logomotion_partialImage/Debug/Objects/Logomotion/main.o
if  ! -d "`dirname "Logomotion_partialImage/Debug/Objects/main.o"`" ]; then mkdir -p "`dirname "Logomotion_partialImage/Debug/Objects/main.o"`"; fi;echo "building Logomotion_partialImage/Debug/Objects/main.o"; ccppc -g -mcpu=603 -mstrict-align -mno-implicit-fp -mlongcall -ansi -Wall  -MD -MP  -IC:/WindRiver/vxworks-6.3/target/h -IC:/WindRiver/vxworks-6.3/target/h/wrn/coreip -IC:/WindRiver/vxworks-6.3/target/h/WPIlib   -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL    -o "Logomotion_partialImage/Debug/Objects/main.o" -c "C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp"
building Logomotion_partialImage/Debug/Objects/main.o
if  ! -d "`dirname "Logomotion_partialImage/Debug/Logomotion_partialImage.o"`" ]; then mkdir -p "`dirname "Logomotion_partialImage/Debug/Logomotion_partialImage.o"`"; fi;echo "building Logomotion_partialImage/Debug/Logomotion_partialImage.o"; ccppc -r -nostdlib -Wl,-X  -o "Logomotion_partialImage/Debug/Logomotion_partialImage.o" Logomotion_partialImage/Debug/Objects/Logomotion/DashboardDataFormat.o Logomotion_partialImage/Debug/Objects/Logomotion/main.o Logomotion_partialImage/Debug/Objects/main.o      && if  "0" = "1" ]; then plink "Logomotion_partialImage/Debug/Logomotion_partialImage.o";fi
building Logomotion_partialImage/Debug/Logomotion_partialImage.o
if  ! -d "`dirname "Logomotion/Debug/Logomotion.out"`" ]; then mkdir -p "`dirname "Logomotion/Debug/Logomotion.out"`"; fi;echo "building Logomotion/Debug/Logomotion.out";rm -f "Logomotion/Debug/Logomotion.out";nmppc Logomotion_partialImage/Debug/Logomotion_partialImage.o  | tclsh C:/WindRiver/vxworks-6.3/host/resource/hutils/tcl/munch.tcl -c ppc > Logomotion/Debug/ctdt.c; ccppc -g -mcpu=603 -mstrict-align -mno-implicit-fp -mlongcall -fdollars-in-identifiers -Wall  -IC:/WindRiver/vxworks-6.3/target/h -IC:/WindRiver/vxworks-6.3/target/h/wrn/coreip -IC:/WindRiver/vxworks-6.3/target/h/WPIlib   -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL     -o Logomotion/Debug/ctdt.o -c Logomotion/Debug/ctdt.c;%l  inkerprefix% ccppc -r -nostdlib -Wl,-X -T C:/WindRiver/vxworks-6.3/target/h/tool/gnu/ldscripts/link.OUT -o "Logomotion/Debug/Logomotion.out" Logomotion/Debug/ctdt.o Logomotion_partialImage/Debug/Logomotion_partialImage.o       && if  "0" = "1" ]; then plink "Logomotion/Debug/Logomotion.out";fi
building Logomotion/Debug/Logomotion.out
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\make32928.sh: %l: command not found
C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [Logomotion/Debug/Logomotion.out] Error 127
Build Failed in Project 'Logomotion' (Process Exit Value was 2):   2011-01-20 22:41:43   (Elapsed Time: 00:03)

Anybody understands what’s going on?

I made more progress. I finally got rid of the multiple definitions of FRC_userClassFactory() error. The way I got rid of it is that since I firmly believe it is the build environment that screwed me up, I created the Line Follower example project. It compiled perfectly. Then I compared the its .wrproject file with my own .wrproject file and did some minor fixes to make them as similar as possible. That works. But don’t ask me which change fixed it. It’s seems a black box to me. But now I still have one last error:


C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\make21408.sh: %l: command not found
C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [Logomotion/NonDebug/Logomotion.out] Error 127
Build Failed in Project 'Logomotion' (Process Exit Value was 2):   2011-01-20 23:41:19   (Elapsed Time: 00:03)

It looks like it cannot find a “make21408.sh” file in my temp directory. I assume this is some sort of shell script generated by WorkBench but it’s not there. Any suggestions?

Here’s what I’m guessing happened. You copied over your 2010 code after installing the Workbench update. Therefore, all the header references in the code to the WPILib were still trying to point to the 2010 version of WPILib, where the Workbench update updated the WPILib to a newer, 2011 version. This is why the Line Follower example worked, it pointed to the correct WPILib.

If you’re having to hack away at WPILib to get rid of errors, then something is going wrong.

My suggestion is to delete the project you’re on and start from scratch. It’s a pain, but the day or so it takes to copy over the old code to the new project will save you loads of time and errors in the future.

Thanks. It does work. Should have done this a lot earlier :slight_smile: Basically, I move the project directory to somewhere else. Did a “New->kernel downloadable module” and created the project. Copy only the source files back, added the WPIlib path and compiled. It worked!

You deserve a big ‘atta-boy’ for persevering and figuring this out.
Atta-boy!
For future reference, when you have a project that just won’t build, and you have another similar project that does (an unmodified example project), compare them with a directory/file compare tool.
All the project files are just XML and plain text.
Beyond Compare is, by far, the best tool I’ve found for things like that.

BTW, is there a document showing me what to pick on the million configurations Project Properties offered me?

Yes, many actually.
They’re in the Workbench help facility, which nobody ever seems to look at. :wink:

Yes, I did that. That’s how I fixed most of the errors. But at the end, I still couldn’t fix all because I don’t understand all the different build options. You will see many differences but without understanding them, you would just guess and experiment. That takes a lot of time. So instead of struggling with understanding what options to tweak to make it build, starting over and creating a clean project is the way to go.
Thank you for all your advices.

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. All other build platforms need to be unchecked.