In a build of a service COM module, the following error are generated during
linking:
...
Linking...
LIBCMT.lib(ftol2.obj) : error LNK2005: __ftol2 already defined in
WMStubDRM_34119.lib(ftol2.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _free already defined in
LIBCMT.lib(free.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _malloc already defined in
LIBCMT.lib(malloc.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall
type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z)
already defined in LIBCMT.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info &
__thiscall type_info::operator=(class type_info const &)"
(??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
libs; use /NODEFAULTLIB:library
..\..\bin\MyService.exe : fatal error LNK1169: one or more multiply defined
symbols found


Then I added the Command Line option, "/FORCE", the service module finishes
it linking (and the service can be started manually), but gives the warnings:

...
Generating Code...
Linking...
LIBCMT.lib(ftol2.obj) : warning LNK4006: __ftol2 already defined in
WMStubDRM_34119.lib(ftol2.obj); second definition ignored
MSVCRT.lib(MSVCR80.dll) : warning LNK4006: _free already defined in
LIBCMT.lib(free.obj); second definition ignored
MSVCRT.lib(MSVCR80.dll) : warning LNK4006: _malloc already defined in
LIBCMT.lib(malloc.obj); second definition ignored
MSVCRT.lib(ti_inst.obj) : warning LNK4006: "private: __thiscall
type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z)
already defined in LIBCMT.lib(typinfo.obj); second definition ignored
MSVCRT.lib(ti_inst.obj) : warning LNK4006: "private: class type_info &
__thiscall type_info::operator=(class type_info const &)"
(??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj);
second definition ignored
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
libs; use /NODEFAULTLIB:library
..\..\bin\MyService.exe : warning LNK4088: image being generated due to
/FORCE option; image may not run
WMStubDRM_34119.lib(gs_support.obj) : warning LNK4254: section '.CRT'
(40000040) merged into '.data' (C0000040) with different attributes
LIBCMT.lib(crt0init.obj) : warning LNK4253: section '.CRT' not merged into
'.rdata'; already merged into '.data'
Embedding manifest...
...

In both above cases, the generated manifest file is empty with no dependancy
info contained at all, as below:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
</assembly>

Do some people know what's cause of the problem?

Thanks,
DH