error LNK2005 Linker error...long __stdcall ATL::AtlWinModuleInit(struct ATL::_ATL_WIN_MODULE70

While building CPP code which is using some third party static library I am getting following error:

Linking...

serial.lib(serial.obj) : error LNK2005: "long __stdcall ATL::AtlWinModuleInit(struct ATL::_ATL_WIN_MODULE70 *)" (?AtlWinModuleInit@ATL@@YGJPAU_ATL_WIN_MODULE70@1@@Z) already defined in atlsd.lib(atlfuncs.obj)

Debug/BE_Test_10x.exe : fatal error LNK1169: one or more multiply defined symbols found

Can anybody help me to resolve this?

I am using debug mode.

Thanks in advance.

[709 byte] By [AmolPophale] at [2007-12-23]
# 1

Use the linker /verbose switch to get details that would help you find where the symbol is defined. Try to avoid linking modules with built with different CRT models or different compiler version.

This should get you started for investigation.

Thanks,

Ayman Shoukry

VC++ Team
AymanShoukry-MSFT at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ Language...