Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   WEre is WPILib and other header files (http://www.chiefdelphi.com/forums/showthread.php?t=98163)

ssirovica 07-11-2011 19:56

WEre is WPILib and other header files
 
Hello everyone,

This is my first post on the forums as the new programming captain for my team. I hope you guys can help a newbie with some basic programming questions!

So basically my old team members left a bunch of junk on our programming computer, and I was cleaning it up when I noticed I couldn't find WPILib and some of our own custom header files.

Were are the header files in our code stored? Also, if I want to write a custom header file what folder do I put it in so I can use it in my main class?

In summary I am having some trouble with the basic file structure of Wind River as I come from the vary nice Visual Studio world.

Thanks,
Sasha Sirovica

calcmogul 07-11-2011 20:21

Re: WEre is WPILib and other header files
 
If WindRiver was installed in the default directory, it would be in "C:/WindRiver". The WPILib header files are in "C:\WindRiver\vxworks-6.3\target\h\WPIlib". If you want to make your own headers for a project, create them in your project's folder.

ssirovica 07-11-2011 20:30

Re: WEre is WPILib and other header files
 
Thanks for the replay,

I now understand, and have just one more question.

Do I also put .cpp files in the projects folder?

calcmogul 07-11-2011 20:41

Re: WEre is WPILib and other header files
 
Every source file you put in your project's folder, or header file that you #include from your source, will be built and linked into the final executable. If your .cpp file has code for running the robot, it should go in the project folder.

jwakeman 08-11-2011 08:35

Re: WEre is WPILib and other header files
 
1 Attachment(s)
For starting your first robot project I recommend starting on page 18 of the attached guide. This will show you how to create, build and deploy one of the of the sample projects. Use the sample project as a guide for how to structure your own project.

scree0114 28-01-2012 11:50

Re: WEre is WPILib and other header files
 
I cant find a library for visual studio, where do u find them?

theprgramerdude 28-01-2012 12:06

Re: WEre is WPILib and other header files
 
You don't use visual studio for this => finding the library would do you no good.

But since you're curious, http://firstforge.wpi.edu/sf/scm/do/...cts.wpilib/scm

scree0114 28-01-2012 12:15

Re: WEre is WPILib and other header files
 
Thank you we will use windriver

Joe Ross 28-01-2012 16:08

Re: WEre is WPILib and other header files
 
Quote:

Originally Posted by theprgramerdude (Post 1115212)

The WPILib SVN hasn't been updated this year. The latest code is installed as part of the Windriver update in C:\windriver\WPILib


All times are GMT -5. The time now is 17:47.

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