Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Unable to build command based program (http://www.chiefdelphi.com/forums/showthread.php?t=148242)

Oldgoer 05-05-2016 19:24

Unable to build command based program
 
Our team is moving towards a new command based program for our future robots and are having an issue that makes no sense. when we attempt to build ANY command based program (including a new unaltered void project) we get a fatal error:

Info: Internal Builder is used for build
arm-frc-linux-gnueabi-g++ -std=c++1y "-IC:\\Users\\PiBotics/wpilib/cpp/current/include" "-IC:\\Users\\PiBotics\\workspace\\null command based\\src" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\OI.o" "..\\src\\OI.cpp"
In file included from ..\src\OI.h:4:0,
from ..\src\OI.cpp:1:
C:\Users\PiBotics/wpilib/cpp/current/include/WPILib.h:14:28: fatal error: ../CommandBase.h: No such file or directory
#include "../CommandBase.h"
^
compilation terminated.

I am unable to see why this error is occurring. it looks like it is pointing to not finding the CommandBase.h file which is clearly in the src folder of the project project

euhlmann 05-05-2016 21:42

Re: Unable to build command based program
 
Looks like you added an include for CommandBase.h to your WPILib.h file on line 14
Line 14 is blank for me
http://img.prntscr.com/img?url=http:...om/K6eKywP.png

You shouldn't modify WPILib files in most cases. Remove the line, or reset your wpilib install by closing Eclipse, deleting %userprofile%\wpilib, then starting Eclipse again.


All times are GMT -5. The time now is 09:55.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi