急~~~“/YXstdafx.h”和“/clr”命令行选项不兼容问题

Jennifers 2006-06-12 09:35:02
在.net控制台应用程序中引用了ICE
可使用ICE需将"创建/使用预编译头"选项设置为"自动生成(/YX)"
编译时却产生了"“/YXstdafx.h”和“/clr”命令行选项不兼容"的错误

求解决方法~~~ 各位XDJM们帮帮忙了
...全文
197 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
masterz 2006-06-12
  • 打赏
  • 举报
回复
http://msdn2.microsoft.com/en-us/library/ms173265.aspx
The easiest way to compile a project where some modules are compiled /clr is to disable precompiled headers entirely. (In the project Property Pages dialog, open the C/C++ node, and select Precompiled Headers. Then change the Create/Use Precompiled Headers property to "Not Using Precompiled Headers".)

However, particularly for large projects, precompiled headers provide much better compilation speed, so disabling this feature is not desirable. In this case it's best to configure the /clr and non /clr files to use separate precompiled headers. This can be done in one step by multi-selecting the modules to be compiled /clr using the Solution Explorer, right-clicking on the group, and selecting Properties. Then change both the Create/Use PCH Through File and Precompiled Header File properties to use a different header file name and PCH file respectively.

7,540

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 VC.NET
社区管理员
  • VC.NET社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧