|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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? |
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
|||
|
|||
|
Re: WEre is WPILib and other header files
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.
|
|
#6
|
|||
|
|||
|
Re: WEre is WPILib and other header files
I cant find a library for visual studio, where do u find them?
|
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
Re: WEre is WPILib and other header files
Thank you we will use windriver
|
|
#9
|
||||||
|
||||||
|
Re: WEre is WPILib and other header files
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|