This error occurs when #define is used in the header file and is included by multiple source files.
Solutions of VS2015:
properties -> Linker -> General -> Force File Output -> Multiply Defined Symbol Only (/FORCE:MULTIPLE)
Solutions for VS2010:
Project/Setting/Link/General/Project Options: using the/FORCE: MULTIPLE
Solutions of VS2015:
properties -> Linker -> General -> Force File Output -> Multiply Defined Symbol Only (/FORCE:MULTIPLE)
Solutions for VS2010:
Project/Setting/Link/General/Project Options: using the/FORCE: MULTIPLE