Sounds like you need a header guard around your definition of `CmdLockMutex` (Add `#pragma once` at the top of its .h file.). Or rather you have a naming conflict.
Maybe you have something like this:
enum MyEnum { MyEnumVal1, MyEnumVal2 };
class MyEnum
{
};