2024年5月3日发(作者:)
Intel Visual Fortran 与 Visual Studio 集成的若干问题
2009/01/11 10:12
一.无法集成
在Visual Studio 2005中集成Intel Fortran 11 。首先应装 Visual Studio 2005,
至少要选择VC++组件,安装好了之后再安装Intel Fortran 11。
安装过程中注意有没有 Intel Visual Fortran Comiler 11.0 Integrations in Microsoft
Visual Studio 组件,这个组件的作用就是使之集成到 VS 开发环境。一般都是默认安装的。
两个软件都安装完了之后启动VS2005,看看Help->About Microsoft Visual Studio
里是否显示组件已经安装成功,如图:
或者查看新建项目时有无
如果没有出现与Fortran 有关的工程类型,则说明集成并未安装成功。
此时可到VS 的安装目录中,比如:C:Program FilesMicrosoft Visual Studio
8Intel FortranVFPackages里双击批处理文件之后再启动VS2005看看是
否集成成功。
一般的错误为:没有成功注册。通过 Regsvr32 工具对其注册。在命令行
内输入:
Regsvr32 "C:Program FilesMicrosoft Visual Studio 8Intel
"
若注册失败并显示错误码为0x80070005,则是因为注册表权限问题导致。
将电脑重新启动,按F8进入安装模式,在DOS窗口中输入如下命令:
C:WINDOWSsystem32secedit /configure /cfg %windir% /db
/verbose
等到100%的时候,重新启动电脑。此时再次注册就会成功。再次启动VS2005
就会发现已经集成成功了。
另外使用中文版的VS2005也有可能集成不成功,解决方法为:
在非英语版本的Visual Studio 2005中集成Intel Fortran 10会遇到这个问题。Visual
Studio 2003不会遇到。解决办法如下:
Installing Into a Non-English Version of Microsoft Visual Studio 2005*
If you are using a non-English version of Microsoft Visual Studio 2005 and have
installed the Intel Visual Fortran Integrations into Microsoft Visual Studio, there
is an additional procedure you must follow in order to make the integrations usable.
This does not apply to Microsoft Visual 2003.
You must first identify the Locale ID that Microsoft uses to identify your
language locale. For example, the ID for English is 1033 and the ID for Japanese
is 1041. You can find the Locale ID for your version of Microsoft Visual Studio 2005
by looking for a folder whose name is a four or five digit number in Program
FilesMicrosoft Visual Studio 8Common7IDE. The number is your Locale ID.
In each of the following folders:
Program FilesMicrosoft Visual Studio
8Common7IDEProjectTemplatesIntelFortranCOM Server
Program FilesMicrosoft Visual Studio
8Common7IDEProjectTemplatesIntelFortranConsole Application
Program FilesMicrosoft Visual Studio
8Common7IDEProjectTemplatesIntelFortranLibrary
Program FilesMicrosoft Visual Studio
8Common7IDEProjectTemplatesIntelFortranQuickWin Application
Program FilesMicrosoft Visual Studio
8Common7IDEProjectTemplatesIntelFortranWindowing Application
you will find a folder named 1033. Make a copy of the 1033 folder (and its
contents) and rename the folder to be that of your Locale ID(中文的 ID 是:2052).
For example, if you have a German version of Visual Studio 2005, you would make a
copy of the 1033 folder in each of the above folders and rename the copy 1031 (the
Locale ID for "German - Germany") Repeat this step for each of the five folders listed
above.
After the folder copy is done, open a Fortran Build Environment command window
(Start > All Programs > Intel(R) Software Development Tools > Intel(R) Fortran
Compiler > Fortran Build Environment for IA-32 Applications. In that
command window, type the command:
devenv /setup
This will properly register the Fortran integration.
In a future update to the product these copies will be made automatically at
install time. We apologize for the inconvenience。
二. VC++ 执行 CMD 错误
VS2005 C++编译一个程序,竟然出现
error PRJ0003:Error spawning ''
依下面
方法便可解决:
tools=> Options => Projects and Solutions -> VC++ Directories page
在$(PATH)的下一行写上:
$(SystemRoot)System32;$(SystemRoot);$(SystemRoot)System32wbem
如图:
发布者:admin,转转请注明出处:http://www.yc00.com/web/1714747200a2507747.html
评论列表(0条)