View Single Post
  #14   Spotlight this post!  
Unread 04-02-2007, 15:33
michael714's Avatar
michael714 michael714 is offline
Registered User
FRC #3863 (Pantherbotics)
Team Role: Teacher
 
Join Date: Apr 2006
Rookie Year: 2007
Location: Newbury Park, CA
Posts: 46
michael714 is on a distinguished road
Mixing WPILib with default MPLAB code

Dear Brad,
I've been trying to do it myself. I added the 2k5 files including API.h, UserAPI.h, and WPILIb2k5.lib to Kevin Watson's edu_camera code and the compiler was able to do everything with no errors or warnings except from the Linker at the end and it looked like this:

Error - section 'InterruptVectorLow' type is non-overlay and absolute but occurs in more than one input file.

InterrruptVectorLow is in user_routines_fast.c. I tried removing user_routines_fast.c, but just got another error message. When I comment out the WPILib sample code (from the manual), the error message goes away and everything compiles just fine. As soon as I put the code that references WPILib routines back in, the error comes back. I still have ifi_library.lib attached to the project and I tried removing it, but the error did not go away. I also tried re-ordering the two library files and that did not help either.

Am I trying to do something that can't be done?