Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Windriver WPILib Build Issues (http://www.chiefdelphi.com/forums/showthread.php?t=89396)

WillF 17-01-2011 18:52

Windriver WPILib Build Issues
 
So we have been trying to get a program up and running for the robot. Unfortunately we have run into a little snag. Whenever we try to build the program it stops at
# include "WPILib.h"

Our theory behind this is that the subdirectories of C:/windriver/vxworks-6.3/target/h are not included in the build path. WPILib.h is in one of the subdirectories. Has anyone else run into this problem? Does anyone know how to set it so that the build paths are recursive?

basicxman 17-01-2011 22:12

Re: Windriver WPILib Build Issues
 
Quote:

Originally Posted by WillF (Post 1002264)
# include "WPILib.h"

Not sure if this is just formatting you used for your post on this forum, but there should be no space between # and include, example:
Code:

#include "WPILib.h"
Quote:

Originally Posted by WillF (Post 1002264)
Our theory behind this is that the subdirectories of C:/windriver/vxworks-6.3/target/h are not included in the build path.

Here's a piece of our in-house documentation regarding the proper build paths:
Quote:

9. Switch to the Build Paths tab
Add the following Include directories under Include paths
-I$(WIND_BASE)/target/h
-I$(WIND_BASE)/target/h/WPIlib
-I$(WIND_BASE)/target/h/wrn/coreip

10. Switch to the Libraries tab
Add the following Library directives under Libraries
$(WIND_BASE)/target/lib/WPILib.a
EDIT: If neither of these solutions are working, please post the full build error you are receiving.

WillF 18-01-2011 19:27

Re: Windriver WPILib Build Issues
 
Well, that did the trick. Thanks


All times are GMT -5. The time now is 13:57.

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