Log in

View Full Version : How do we add WPILib files in prog???


ambie_o7
19-02-2007, 22:54
Our team needs help... we dont know how to get the WPILib files to compile with the FRC code? we've added it into the source files and yet we still are having compiling probs... assistance is requested FAST... we want to pack it up tonite.... thanx guys!

MattD
19-02-2007, 23:11
Could you please describe the errors that it is showing? Also, make sure to set the link order so that WPILib is first, then the FRC library. This document (http://users.wpi.edu/~bamiller/WPILib/UsingMPLab.pdf) describes how to check that on pages 7 and 8.

ambie_o7
19-02-2007, 23:17
errors include could not find UserAPI.h

we did put the WPILib files before...

thanxxxxxxxxxxxxxxxxxxxxxx!!!!!!!!!!!!!!!

MattD
20-02-2007, 00:28
Ah, I think that it is actually named API.h in the distribution - try replacing any #include "UserAPI.h" lines with #include "API.h" instead, or you could just rename the API.h file to be UserAPI.h.

ambie_o7
20-02-2007, 01:05
already tried that... that doesnt work either... thanxx n e way!!!

BradAMiller
20-02-2007, 01:35
It is correct that the UserAPI.h file is no longer used. I haven't had time to update the documentation.

Are there other errors that you are seeing?

Brad