Go to Post keep making a difference out there everyone...slowly but surely everyone will catch onto FIRST and then the world will be a better place :) - tiffany34990 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 29-12-2008, 01:41
manderson5192 manderson5192 is offline
Registered User
AKA: Matt Anderson
FRC #0948 (Newport Robotics Group: NRG (pronounced eNeRGy))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Bellevue, WA
Posts: 62
manderson5192 is on a distinguished road
Trouble modifying WPILib

Hey guys,

I'm setup to program in C++ with WindRiver workbench and I'm able to get all the example programs to compile just fine. I just got started on a new project today, though, trying to modify the WPIlib source files RobotDrive.cpp and RobotDrive.h in my project. I have copied them from the WPIlib project (downloadable from the WPI website) into my project, which is a SimpleRobot.

From reading the C Programming Guide, I assume that one is able to do just this, make modifications to the added WPIlib files, and then everything will magically compile (see page 76 in the guide). Clearly, though, this is not the case (at least in my case ).

As far as I can tell, there are no syntactical errors that would keep my code from compiling, and yet I am still getting errors when I go to build the project. There are four functions that each generate two errors in what appears to be the link step (I may be wrong on that one) and the errors, in essence, say that I have multiple definitions of these four functions. Coincidentally, these are the four functions that I didn't comment out from the original WPIlib files. Their definitions in the .h file did not change, either, to accommodate my modifications.

So here's what I think is happening: I think that my project is somehow trying to link in the pre-compiled RobotDrive files and throwing me errors where ever it finds conflicts between the ones in my project and the ones in WPIlib.

Finally my question: Has anyone tried to modify parts of WPIlib in a new project to any success? What was your secret? I am kinda stumped right now...

Maybe I just need to sleep on it, but if you guys could think of any solution, I would be hugely appreciative.

Thanks!
-Matt
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inventor software trouble/ FIRST Base trouble nasa-senpai General Forum 2 24-01-2007 09:15
modifying parts? firstborn Motors 12 20-01-2006 14:35
Modifying Motors Gun Technical Discussion 2 27-02-2003 15:11
modifying sprockets gail OCCRA 3 05-10-2002 12:13
Modifying Casters Jim Meyer OCCRA 1 05-10-2001 21:15


All times are GMT -5. The time now is 00:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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