For some more background information, here is a link to this same topic on chiefdelphi .
What I'm trying to do is roughly outlined on page 76 in the C Programming Guide. I want to modify RobotDrive.cpp and RobotDrive.h in my SimpleRobot project. What I've done is copy these files from the WPIlib source project into my project, made the appropriate modifications, and then tried to compile. In modifying the files, I ended up commenting out all but three of the original functions and adding some stuff of my own (which I'm convinced is error-____). Consequently, when I go to build the project, those three functions have "multiple definitions errors".
I am aware that I could just modify the WPIlib project and compile a custom WPIlib.a file, but that really isn't a lightweight option. I looked at page 76 in the C Programming Guide and it looked like what I tried ought to have worked out just fine.
Can anyone out there tell me what I need to do to get this to work? I really don't want to go the custom WPIlib.a path, but I certainly could if there isn't a better alternative.
Thanks,
-Matt


Reply With Quote
.