Using Build Variables in C code with Eclipse 4.4.2
问题 I have a project that I created previously using Eclipse 3.5.2. In it, I was able to set a Build Variable in the project properties. In this case, let's say I set SW_VERSION to be 4403. Now this is intended to be a hex number, so in the Build Settings, I added a Symbol "VERSION=0x${SW_VERSION}" entry. Then in my code, I was able to use VERSION as a regular number, like so: unsigned int vers = VERSION; There was no problems, and vers got the value 0x4403 . Now I'm using Eclipse version 4.4.2