- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am running version 12.1.2.278 build 20111128 under Windows 7/64, together with MS Visual Studio 2010 SP1.
After installing the most recent updates, including MS Visual Studio, I am having this problem which seems to be an old one (what I see from internet questions).
Compiling and running works fine from within Visual Studio, but if I run the compiler as the command ifort I get the obj file but it doesnt link, producing the error mentioned.
Your previous response to this kind of problem (from 2008!) does not seem to work with Windows 7, and I do not get an answer from Intel Premier Support. Is this common from your "premier"?. What a poor service!.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How are you starting the command prompt session? Please show me a log of the console session from the beginning, including the output displayed when the session starts.
- 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
As for your question I simply open a DOS windows in the directory whre the .for file is, and issue a command
> IFORT file.for
which yields the file.obj and the
ifort: error #10037: could not find 'link'.
Unfortunately I don't know how to extract (write to an extrnal file) the console session in a DOS window, but these two lines are the only information displayed.
When I did the upgrade to the recent versions, I installed first the Intel compilar, and I was then instructed to install the Visual Studio. This means that Visual Studio was upgraded AFTER the Intel compiler. Could this have something to do?.
My goal is to have a simple bat file to compile and link with the relevant switches, optimization, etc.
- 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
Please do not post serial numbers in the forum - I removed it,. I do see that you have current support and that you have an active Premier Support login. Your login ID is your email address. If you are unable to log in to Premier Support I will ask one of our specialists to help you.
In addition to what Tim says, you need to either start the command session with one of the shortcuts provided when the compiler installs under Intel Parallel Studioi XE > Command Prompt. Or have your .bat file invoke the compilervars.bat file with the appropriate arguments as described in the documentation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am sorry but I need you to be more specific. I have found the bat files, but where do i find the ppropriate arguments'?. The documentation is enormous!, and links jump from one place to another.
Since the first day I have complained on the lack of clarity of your 'primers' documentation, sorry, a step-by-step set of instructions is clearly missing.This 'learning by trial' is an enormous waste of time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"%IFORT_COMPILER12%\bin\compilervars.bat" ia32 vs2010
The ia32 should be replaced with intel64 if you want to build for x64. Thesecond argument is the version of Visual Studio you are using, though you can omit that to use the one selected as default during installation.
If you open the documentation and click the large Start Here link, you are presented with two choices: Using Microsoft Visual Studio and Using the Command Line. If you select the latter, you are led through the steps for using the command line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My misunderstanding of the meaning of the sentence "Under normal circumstances, you do not need to run the compilervars.bat batch file. The Fortran command-line window sets these variables for you automatically."
I tried to activate this, as the manual says, but my nstalled product appears as
Intel Parallel Studio XE 2011/Parallel Studio XE 2011 with VS 2010
and in the command window which appears, says "command ifor is not valid" if I try to issue an "ifor file_X.for".
- 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
Do i need to set the environment too if I am using the comand line fom within Visual Studio?. This is not what I interpret from the instructions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How would you be "using the command line form from within Visual Studio"? If you are building from within Visual Studio, you do not need to use compilervars.bat - the necessary definitions are read from the registry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve
Why when I select the Post/reply from below I do not have the option to reply? See attach ( cannot attach an image, this system asks for an URL, not for one of my directories). And the link to "view" does not show your most recent response. Each time I respond to your threads I have to "invent" something.
Indeed it does not work. I don't need to run the command in Visual studio, but I wonder what is the purpose of the "command window" which appears
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Click on the link in my signature below for how to attach a file.
In VS2008 and earlier there is a Tools > Visual Studio Command Prompt item, but choosing that will not let you build Fortran applications - it is a Microsoft tools only environment. If you want to use the command line, please use one of the shortcuts we install in the Start menu (feel free to copy one of these to your desktop and customize it - that's what I do.) VS2010 doesn't have this option.

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