We've generally heard that PGI Fortran and Intel Fortran don't play nice together in Visual Studio, so we don't recommend having both installed.
I replied to your private message with instructions, but here they are again.
In Visual Studio, select Tools > Options > Intel Composer XE > Visual Fortran > Compilers. To the right of "Executables" click on the "..." button. Add C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1\bin to the list and click OK. Now select the x64 tab and repeat this, using C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1\bin\amd64
I usually see this problem happen when a different Windows SDK gets installed. It may be that the PGI install made changes here.
Thank you Steve. I uninstalled PGI (with VS 2010 shell) and IVF 2013 and again install it with VS 2010 Ultimate final. When I build my code get the error:
LINK : fatal error LNK1104: cannot open file 'LIBCMTD.lib'.
I attached the buildlog.htm. I hope you don't tell me that I must uninstall the IVF and VS. I installed and uninstalled both of them several times because I had problem and ultimately installed them without any error.
By the way my purpose is to make Mex file and run the in MATLAB. When I run this code in matlab as "mex thecode.f " I get this error:
Error using mex
LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'
In that case you don't have Visual C++ installed from VS2010. You need that. You can do a "Modify" on the VS2010 install and make sure that C++ support is included, though I thought VS2010 always included that so I'm surprised it's not there. Maybe you need to "Repair" the VS2010 install. Does the folder itself exist?
But msvcrt.lib is not there? You need to repair the C++ install - that is a fundamental part of MSVC. You might also consider installing the latest "service pack" for VS2010 and see if that takes care of it.
I don't know what happened. I don't have the latest service pack but I uninstalled VS 2010 and Intel composer xe 2013 and now I'm installing VS 2013 Ultimate. I hope this works. After installing and running my code I let you know. Thank you again for your prompt reply.
Hi Steve again
I installed VS2012 Ultimate and Intel composer 2013. During building I didn't get any error but during debugging sometimes the black screen(command screen that outputs are showed there) suddenly disappears and I don't know what to do!! What's the problem?
When debugging a Fortran program you need to set a breakpoint at an executable statement before starting the run. Otherwise the program will run to completion and then exit.