- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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'
Best Wishes
Iman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would expect that library to be in D:\Program Files\Microsoft Visual Studio 10.0\VC\lib - is it?
I can't comment on what happens when you use a "mex" command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No.It's not in there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. The folder is in that path. I installed full version and saw that C++ had been checked..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Iman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have another question. Should I change HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft after uninstalling in regedit tree?If yes what part?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, you should not touch the registry unless explicitly told to (which would be most unusual.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page