I created an enum in a file as follows:
I then want to use those values in another file that I am linking together with this file. My question is how to I declare the enum so that the SOME_VAL and ANOTHER retain there values and not reset to 0 and 1 respectively. Currently, I had the following in my other file:Code:enum { SOME_VAL=201, ANOTHER = 202 };
and this did not work.Code:extern enum { SOME_VAL, ANOTHER };
Thanks