Click to See Complete Forum and Search --> : Release MinSize


Bonny
April 28th, 2004, 10:53 AM
I have a VC++ 5.0 project which I am trying to compile in VC++ .NET. This gets compiled sucessfully under Release MinDependency, but when I select Release MinSize it gives the following errors

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxstr.h(85) : error C2976: 'StrTraitMFC_DLL' : too few template arguments

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxstr.h(67) : see declaration of 'StrTraitMFC_DLL'


Can someone help please.

Thanks
Bonny

NebulaSleuth
February 5th, 2006, 11:44 AM
I know this is an old post, but I ran into the same thing when porting an application from 2003.NET to 2005.NET.

I eventually solved the problem, and thought I'd post it just in case others run into it...

It turned out that in the project settings, there was a "Minimize CRT Use in ATL" option turned on. Turning this off fixed the problem.