![]() |
"Getting Started" Errors
I created a WPILib example file, "Getting Started". This is my code:
Code:
#include "WPILib.h"- Program "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl" not found in PATH - The type 'Joystick' must implement the inherited pure virtual method 'GenericHID::GetPOV' In line 7 - The type 'Joystick' must implement the inherited pure virtual method 'GenericHID::GetRawAxis' In line 7 - The type 'Joystick' must implement the inherited pure virtual method 'GenericHID::GetRawButton' In line 7 - The type 'RobotDrive' must implement the inherited pure virtual method 'MotorSafety::GetDescription' In line 6 Also, 'START_ROBOT_CLASS(Robot)' has a syntax error. How can I fix these errors? |
Re: "Getting Started" Errors
Hi,
Hopefully this will help: 1) "Program "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl" not found in PATH" This indicates that the development environment is probably not setup. If you are going to use Visual Studio you may wish to look at this thread: https://www.chiefdelphi.com/forums/s...=visual+studio If you are just starting out with C++, I would recommend starting with the setup instructions described here: https://wpilib.screenstepslive.com/s.../13810/c/57252 My guess is that the rest of the errors you are seeing are related to include paths that need to be set for the WPILIB include directories. I'm at my day job right now, but I can add more detail when I get home this evening. Hopefully the information I gave you above can help get you started. Matt |
Re: "Getting Started" Errors
Quote:
|
Re: "Getting Started" Errors
Try closing Eclipse, deleting C:\Users\<You>\wpilib, then starting Eclipse again (wait for it to recreate the folder)
|
| All times are GMT -5. The time now is 10:02. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi