Content originally posted in LPCWare by OldManVimes on Mon May 19 05:54:29 MST 2014
Hi Support,
Thanks for the reference to the Eclipse bug report. Also, I understand this is not an issue created by LPCXpresso. The fact that this problem has existed for as long as it has is mind boggling (in my head I use different words to describe this). Why should anyone have to deal with this situation? As far as I'm concerned, the CDT team needs a sanity check.
The likelihood of running into this issue is.... debatable. If I change a constant in a header file and then do a compile + debug, my code runs without that change since any dependent .c file is not recompiled. Try explaining that to a beginner or an overworked software engineer who just expects very basic infrastructure that has worked well for 30-40 years to work flawlessly. The only reason I found out is because I use a script at compile-time to generate a build number in a .h file and was puzzled by the fact that this constant did not end up in my binary until I did a rebuild.
Any generic remedial fix that you can add to LPCXpresso until the CDT team finds time in their schedule to fix this is still appreciated. I won't need it, since I will use the workaround (which works by the way) . However I'm sure others who experience 'weird behavior' until they perform a clean build will appreciate it, even if they never know they had this issue. If anyone runs into this issue and then spends a lot of time not understanding what's going on, and then finds this thread, some, few or more expletives will be uttered. You are in a position to prevent that.