|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#13
|
|||
|
|||
|
Re: replace WPILib part
To answer the original question: when you pull the source for a library file into your project, DON"T DELETE ANYTHING. What happens when you delete something is this: somewhere (doesn't have to be in anything you did) there is likely to be a reference to the thing(s) you delete. The linker notices the references to your new stuff and pulls your new object file in. Then it notices that there is a reference to this something that is satisfied by the original object file in the library and pulls it in too. You get double definitions for the things that appear in both.
The bit about being somewhat correct about inline functions is a dig. It is absolutely correct that you can't just add inline to function declarations - you have to move the body of the function to where it is declared. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| can we replace the joystick with a steering? | mahmosh | Technical Discussion | 2 | 01-25-2009 07:08 PM |
| Could this replace the Segway? | Wayne Doenges | Chit-Chat | 1 | 05-01-2008 11:01 AM |
| A warning regarding MPLAB and find/replace | Tom Line | Programming | 0 | 01-24-2008 05:35 PM |
| REPLACE VEX with us | bill mc gowan | General Forum | 20 | 03-23-2006 11:12 AM |
| Call me Steve Irwin... 'cept replace the crocs with bats... | Mini-D67 | Chit-Chat | 7 | 12-14-2004 09:52 PM |