IntelliSense error on "Build Solution" - by zirconia

Status : 

  Postponed<br /><br />
		Due to current priorities, the product team decided to postpone the resolution of this item.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 549119 Comments
Status Closed Workarounds
Type Bug Repros 3
Opened 4/6/2010 1:10:37 PM
Access Restriction Public


When I build my projects I get no error, but when I hit F7 to simply build the solution, I always get this IntelliSense error:

IntelliSense: #error directive: Please use the /MD switch for _AFXDLL builds	c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxver_.h

I see no trace of this if building with "MSBuild MyProject.sln /v:d". The project name is empty, so I cannot trace where the error comes from, even though I'm sure I have properly set my switches/defines.

Using MFC exe + MFC extension dlls (DllMain-like) + Xtreme ToolkitPro.
Sign in to post a comment.
Posted by CelBabe on 1/20/2011 at 10:18 PM
The workaround mentioned on 4/16/10 fixed my problem. Thanks.
For a sanity check, ensure that /MDd is in the compiler command line afterwards.
Posted by Microsoft on 4/16/2010 at 4:49 PM

Thanks for your feedback. From your description, I believe this is a known issue. There's a bug where the settings of a generated MFC project would show "Multi-threaded Debug DLL (/MDd)"; however, it doesn't pass that argument to the intellisense engine. To workaround this problem, please try the following:

1. Right-click the Project.
2. Go to Config Properties->C/C++-> Code Gen ->. Double-click "Runtime Library" and set to "Multi-threaded Debug DLL (/MDd)" . If this value already appears to be set, make sure it is by selecting it again (it should then appear as bold).
3. Click OK.

I'm going to resolve this issue for now. If this doesn't fix your problem, please re-activate this issue and send us a sample project that demostrates this problem.

Alan Chan
Windows C++ Dev
Posted by Microsoft on 4/7/2010 at 12:27 AM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(