使用VS2010作为IDE和Intel C ++编译器从调试切换到释放模式13 [英] Switching from Debug into Release Mode with VS2010 as IDE and Intel C++ Compiler 13

查看:399
本文介绍了使用VS2010作为IDE和Intel C ++编译器从调试切换到释放模式13的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个从SDK插件的代码。
代码处于调试模式。
我使用英特尔编译器,它只在发布模式下应用优化。

I have a code of a Plug In from an SDK. The code is in Debug Mode. I use Intel Compiler which only applies optimizations in Release Mode.

在项目的配置管理器下只定义了调试模式。

Under configuration manager of the project only "Debug" mode is defined.

如何切换到Release模式并启用所有英特尔编译器的优化?
如果我在调试模式下启用它们,没有任何应用(空报表)。

How could I switch to "Release" mode and enable all Intel Compiler's optimizations? If I enable them on debug mode nothing is applied (Empty Report).

我找不到这样做的诀窍。

I couldn't find the trick to do so.

谢谢。

PS
我仍​​然使用/ MT开关。

P.S. I do use the /MT switch yet still.

推荐答案

好,这里是解决方案,
首先使用/ MD或/ MD,这是微不足道的。
然后定义NDEBUG。
注意在项目的每个文件中执行此操作。
在我的例子中,一些文件设置为/ MTd设置调试模式。

Ok, here is the solution, First of all using the /MD or /MD, which is trivial. Then define NDEBUG. Pay attention to do this in every file in the project. In my case, some files were set to /MTd which sets the Debug mode.

我使用英特尔编译器,这个线程可能有帮助:
http://software.intel.com/en-us/forums/topic/328136

I used Intel Compiler and this thread might help: http://software.intel.com/en-us/forums/topic/328136

这篇关于使用VS2010作为IDE和Intel C ++编译器从调试切换到释放模式13的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆