Quote:
Originally Posted by euhlmann
When you create projects through File > New > Wpilib > robot C++ project it should be adding the includes automatically. Check on the "paths and symbols" section if your project build settings, there should be a wpilib location listed under include paths. If there isn't, try setting up a new project with File > New > Wpilib > robot C++ project.
If the include path is listed but you still have errors, make sure you have correctly used the #include directive in your code. Also, you can try rebuilding your C++ index by right clicking your project > index > rebuild.
|
All the projects I create through WPILib don't have the includes, but they all have:
Code:
#include "WPILib.h"
at the top of the Robot.cpp. Also, rebuilding the index doesn't seem to fix it.
In Paths and Symbols > Includes > GNU C++, I have "${WPILIB}/cpp/current/include" and "/${ProjName}/src". The libraries tab just as an entry called "wpi" and the Library Paths tab just has "${WPILIB}/cpp/current/lib" again. Are my settings wrong here or could something else be the problem?
Thanks for all the help!