I'm trying to create a simple patch for a build tree that I didn't write. I need to change a hardcoded (#define) value to an int which can be adjusted during execution. I have checked all references to the variable in the source files and it is treated as an int when passed around, so I don't see a problem.
However, when I change the original definition (in a header file, nb) from "#define THISNUM 12" to "int ThisNum 12" (and replaced THISNUM with ThisNum everywhere to remain conventional), I get a bunch of "multiple definition" build errors (then the linker fails) from object files that use the sources (I'm not familiar with the make/build process on a whole tree of files).
What can I do?
ps. as a hack I added "extern" but still no dice...