Lnk2005 error when build a new cloud gem

I created a new Cloud Gem with “lmbr_aws cloud-gem create --gem MyCloudGem --initial-content api-lambda --enable” . It generated two components, MyCloudGemSystemComponet and MyCloudGemClientComponent . When I include MyCloudGemClientComponent.h in the MyCloudGemSystemComponet.cpp to use the ServiceAPI functions, it produced a lot of LNK2005 error, like these

1>MyCloudGemSystemComponent.cpp.921346.obj : error LNK2005: “struct CTypeInfo const & __cdecl TypeInfo(signed char const *)” (??$TypeInfo@C@@YAAEBUCTypeInfo@@PEBC@Z)
1>MyCloudGemSystemComponent.cpp.921346.obj : error LNK2005: “struct CTypeInfo const & __cdecl TypeInfo(char const *)” (??$TypeInfo@D@@YAAEBUCTypeInfo@@PEBD@Z)
1>MyCloudGemSystemComponent.cpp.921346.obj : error LNK2005: “struct CTypeInfo const & __cdecl TypeInfo(unsigned char const *)” (??$TypeInfo@E@@YAAEBUCTypeInfo@@PEBE@Z)
1>MyCloudGemSystemComponent.cpp.921346.obj : error LNK2005: “struct CTypeInfo const & __cdecl TypeInfo(short const *)” (??$TypeInfo@F@@YAAEBUCTypeInfo@@PEBF@Z)
1>MyCloudGemSystemComponent.cpp.921346.obj : error LNK2005: “struct CTypeInfo const & __cdecl TypeInfo(unsigned short const *)” (??$TypeInfo@G@@YAAEBUCTypeInfo@@PEBG@Z)
1>MyCloudGemSystemComponent.cpp.921346.obj : error LNK2005: “struct CTypeInfo const & __cdecl TypeInfo(int const *)” (??$TypeInfo@H@@YAAEBUCTypeInfo@@PEBH@Z)
1>MyCloudGemSystemComponent.cpp.921346.obj : error LNK2005: “struct CTypeInfo const & __cdecl TypeInfo(unsigned int const *)” (??$TypeInfo@I@@YAAEBUCTypeInfo@@PEBI@Z)