Modifying System Files

Discussion to talk about software related topics only.
Post Reply
mezz64
Posts: 9
Joined: Mon Feb 02, 2009 8:50 am

Modifying System Files

Post by mezz64 »

I need to modify the command processor in order to change the termination character (the newline character shows up in my hex input strings causing me problems) but every time I change the code and rebuild the system files and recompile my app I get a whole slew of errors in the code. Am I missing something obvious?

Thanks,
John
User avatar
Chris Ruff
Posts: 222
Joined: Thu Apr 24, 2008 4:09 pm
Location: topsail island, nc
Contact:

Re: Modifying System Files

Post by Chris Ruff »

John

Grab the file you want to make the changes to and put a copy in your build directory. Add that file name to your project. Make the change you want to make. The symbols in your code will be used instead of the symbols in the library by the linker. Way better than changing the system library.

This has worked for me a few times with serial.cpp and other system files

Chris
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand
mezz64
Posts: 9
Joined: Mon Feb 02, 2009 8:50 am

Re: Modifying System Files

Post by mezz64 »

It worked!

Thanks a bunch!
Post Reply