global variable defined in lib which used by exe and dlls, will result in error(they are not same object).