Hi all,

I have a macro function defined as follows in xx.h:
Code:
int swap_tmp_int;
#define INT_SWAP(X,Y)  swap_tmp_int=X; X=Y; Y=swap_tmp_int;
Then I used this function in another cpp file and got the following error when built:

"swap_tmp_int first defined here" Please kindly suggest.

Thank you,
Eric