Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 366
  • Last Modified:

why no _ATL_MIN_CRT in debug mode

I was wondering why the preprocessor def _ATL_MIN_CRT is defined in Release mode and not in Debug mode when you create an ATL prjoect  ... what's the rationale behind the difference?
0
djbusychild
Asked:
djbusychild
  • 4
  • 3
  • 2
  • +1
1 Solution
 
elcapitanCommented:
From microsoft:
Microsoft Active Template Library COM AppWizard generates a release build of your project using macro _ATL_MIN_CRT. Selecting this configuration causes the C run-time (CRT) library startup code to not be linked into your project.

Usually I remove this macro also from the release versions, since it will cause link errors if you are using functions that need the C run time library.

find more at:
http://support.microsoft.com/support/kb/articles/Q165/0/76.ASP

--EC--
0
 
ShaunWildeCommented:
its a bug (feature) :)
0
 
djbusychildAuthor Commented:
I understand what _ATL_MIN_CRT is... I can understand that MAYABE you'd want it so long as you don't use c-runtime stuff... but, I was wnodering why they' don't add it to the DEBUG mode
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
ShaunWildeCommented:
well it's debug - you are not bothered about size in debug
0
 
djbusychildAuthor Commented:
sure, but say you were not being conscious about the fact that some things are not available without c-run time , the compiler will let you slide in DEBUG mode but will choke on Release ...
0
 
elcapitanCommented:
>>but, I was wnodering why they' don't add it to the DEBUG mode
Well, it's another mystery of the universe (Microsoft)...

--EC--
0
 
djbusychildAuthor Commented:
so there's no real reason behind this???
damn... wack... ^^ ain't it?

I'll leave it open for the weekend see if anybody has anything to say on Monday and I'll give ya guys points. heh heh -.-;
0
 
ShaunWildeCommented:
0
 
NickAtBOMCommented:
I thought that the c-runtime library was left out of the release version to make exe/dll as small as possilble.  I think it was on somebodies mind that these components may travel over the web, and the 25k reduction in size would be of help.
0
 
djbusychildAuthor Commented:
Yes, the only reason for including _ATL_MIN_CRT would be to reduce the size, but the fact that this changes the
compile-time behavior is undesirable when the same preprocessor definition is ommited from the DEBUG mode..

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now