Go to Post i met ANDY BAKER and D.J... they are awesome! - Arefin Bari [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-05-2016, 19:24
Oldgoer Oldgoer is offline
Registered User
FRC #3814
Team Role: Mentor
 
Join Date: Mar 2016
Rookie Year: 2015
Location: Kentucky
Posts: 3
Oldgoer is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 05-05-2016, 21:42
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 296
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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