Statically linking WTL app not building

  • Thread starter Thread starter Abubakar
  • Start date Start date
A

Abubakar

Hi,
using WTL for GUI, in release mode, if I set the "Runtime Library" to
"Multi-threaded DLL (/MD)", I get the following errors:
:
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _memmove_s already defined in
atlmincrt.lib(atlinit.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _free already defined in
atlmincrt.lib(atlinit.obj)

4 more errors like above. Also following errors:

atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xt_z
atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xt_a
atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xp_z
atlmincrt.lib(atlinit.obj) : error LNK2001: unresolved external symbol
___xp_a

How do I resolve these errors?

Thanks,

Ab.
 
If you use multi threaded runtime library then you have to get rid of
_ATL_MIN_CRT from your compiler preprocessor defines.

Ted.
 
Thanks, that resolved the error.

Ab.

Ted said:
If you use multi threaded runtime library then you have to get rid of
_ATL_MIN_CRT from your compiler preprocessor defines.

Ted.
 
Back
Top