Log in

View Full Version : WEre is WPILib and other header files


ssirovica
07-11-2011, 19:56
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
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
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
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
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
I cant find a library for visual studio, where do u find them?

theprgramerdude
28-01-2012, 12:06
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/listRepositories/projects.wpilib/scm

scree0114
28-01-2012, 12:15
Thank you we will use windriver

Joe Ross
28-01-2012, 16:08
But since you're curious, http://firstforge.wpi.edu/sf/scm/do/listRepositories/projects.wpilib/scm

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