Statically linking WTL app not building

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.
 
T

Ted

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

Ted.
 
A

Abubakar

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top