_ATL_MIN_CRT VC8 release build?

V

Vincent Fatica

How do I get it to work? I keep getting the likes of

LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in
atlmincrt.lib(atlinit.obj)

for the following (none of which I explicitly call).

__encode_pointer
__encoded_null
__decode_pointer
_osplatform
_get_osplatform
errno
set_errno
get_errno
_calloc

The project is a shell context menu extension DLL (essentially a rework of the
sample of the KB's Q298109). With VC7 it was a no-brainer, just check "Minimize
CRT use in ATL" ... nothing else ... 20K image. With VC8 it's 71K. I figure if
I can get _ATL_MIN_CRT to work I'll get it down to just under 50k.

And I get unresolved symbol "_main" ... why? It's a DLL and it's UNICODE.

Thanks.
 
V

Vincent Fatica

Never mind (and thanks anyway). Turning off C++ exception handling did it. With
VC8 the image is now 29K.
 

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