- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just migrated from a desktop PC to Dell Ultrabook and has the IntelFORTRAN with IMSL (Professional version 11.1) installed on Ultrabook.
I tried compiling an old FORTRAN code that uses IMSL special function routine, and, this code was running just fine on the old machine (desktop/PC which had Intel FORTRAN with IMSL ver. 11.1).
When I tried recompiling on the new Ultrabook the same code it started giving me errors for the IMSL. I am attaching both the source code and the "build.htm" file which lists the errors.
Can anyone please help me fix these errors?
- thanks,
Deb C.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your upload didn't make it - please try again.
Please also read
- 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 avoid using PDF for posting source text, since it is a chore to extract the program source from them.
In this instance, however, the problem can be diagnosed from the build-log. The compiler did not find the IMSL module files because, presumably, you have not added the IMSL INCLUDE and LIB paths to the Visual Studio configuration. The details of how to do that are to be found in the link that Steve gave in #2.
Your program runs and outputs results that are plausible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will comment that the instructions I linked to are for current versions - the folder names for version 11 might be different, but that was long ago enough I am not sure. I assume you DO have a version of IMSL installed that is compatible with version 11.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,licked
When I scavenged through all the menu options, I hit the "Tools" and then "Options". Under "Options" I clicked and found "Intel(R)Visual Fortran". When I clicked that one the following came up:
"Executables"
"Libraries"
"Includes"
"Default Options"
The platform is Win32 for me, and, the compiler is " Intel(R) Visual Fortran Compiler Professional for applications running on IA-32, Version 11.1 Package ID: w_cprof_p_11.1.048 "
The difficulty i have is that I cannot now map the instructions that the page you had linked earlier to what I am seeing under the "Options" menu.
Can you please help on how to fix this mess?
- thanks,
Deb C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Steve,
Sorry my cursor is acting up. The earlier post started as "Steve,licked". I simply don't know how did this happen.
Sorry about the mess.
- Deb C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Steve,
Continuing on post # 6 above. The Libraries has the following long command appearing in the dialog box
$(IFortInstallDir)lib\ia32;$(IFortInstallDir)mkl\ia32\lib;$(VCInstallDir)atlmfc\lib;$(VCInstallDir)lib;$(VCInstallDir)PlatformSDK\lib;$(VCInstallDir)PlatformSDK\lib\x86;$(WindowsSdkDir)lib;
When I click on the "..." button at the end of this dialog box the following lines appear in a separate box
$(IFortInstallDir)lib\ia32
$(IFortInstallDir)mkl\ia32\lib
$(VCInstallDir)atlmfc\lib
$(VCInstallDir)lib
$(VCInstallDir)PlatformSDK\lib
$(VCInstallDir)PlatformSDK\lib\x86
$(WindowsSdkDir)lib
Similarly the Includes has the following long command appearing in the dialog box
$(IFortInstallDir)include;$(IFortInstallDir)include\ia32;$(IFortInstallDir)mkl\include;$(VCInstallDir)atlmfc\include;$(VCInstallDir)include;$(VCInstallDir)PlatformSDK\include;$(WindowsSdkDir)include;
When I click on the "...." button at the end of this dialog box a small window opens up with the following lines/options
$(IFortInstallDir)include
$(IFortInstallDir)include\ia32
$(IFortInstallDir)mkl\include
$(VCInstallDir)atlmfc\include
$(VCInstallDir)include
$(VCInstallDir)PlatformSDK\include
$(WindowsSdkDir)include
This does not match the instructions as linked in the webpage that you suggested earlier. Is there something wrong with the version of IMSL and FORTRAN I am using? I suspect that the IMSL I have is not compatible with version 11 - probably out of date? I am spooked.
Can you please help me with this as I am stuck with a tech report.
- Deb C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't see why you concluded that the instructions did not match what you saw. Likewise, the version of IMSL that came with the 11.0 compiler is compatible with that compiler.
Assuming that the environment variable FNL_DIR is properly set on your system, you would add to the list of library directories that you posted in #8 the following:
$(FNL_DIR)\IA32\lib
Similarly, you would make additions to the list directories in the execution path and the list of include directories.
First, check if FNL_DIR is present in the environment, and check whether the IMSL directories have the same tree structure as indicated by $(FNL_DIR)\IA32\lib. The question is whether the architecture symbol (IA32) occurs before or after lib, and similarly for include and bin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mecej4:
You wrote:
"First, check if FNL_DIR is present in the environment, and check whether the IMSL directories have the same tree structure as indicated by $(FNL_DIR)\IA32\lib. The question is whether the architecture symbol (IA32) occurs before or after lib, and similarly for include and bin."
The trouble is, how do I check these out? Normally at our place these are done by our system admin but I do not have time to wait for him. Can you please give me some clues as to how do I check these out?
Also under the Tools -> Options -> Intel(R) Visual Fortran -> Compilers I find only three as below
Executables
Libraries
Includes
None of these have the environment FNL_DIR. How do I know it is or is not there? If it is not there then how can I create/enter one? I just do not want to screw things up and hence looking for some guidance.
- thanks,
Deb C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The architecture symbol IA32 occurs as follows in Executables
$(IFortInstallDir)bin\ia32
$(CommonProgramFiles)\Intel\Shared Files\Ia32\Bin
$(VSInstallDir)Common7\IDE
$(VCInstallDir)BIN
$(VSInstallDir)Common7\Tools
$(VSInstallDir)Common7\Tools\bin
$(FrameworkDir)$(FrameworkVersion)
$(WindowsSdkDir)bin
$(PATH)
I am assuming that (FortInstallDir) is functionally the same as (FNL_DIR), perhaps??? In that case IA32 occurs after bin. In the Includes (as in post # 8) this architecture symbol IA32 occurs after include. In the Libraries it occurs after lib. So, now how do I change the commands?
Again, thanks a lot for your quick response.
- Deb C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Deb C. wrote:
I am assuming that (FortInstallDir) is functionally the same as (FNL_DIR)
No, IMSL and Intel Fortran are almost never installed with their directories merged like that. You can see if FNL_DIR is set by (1) opening a command window and typing "set FNL_DIR" or by going to the System control panel and choosing Advanced-Environment Variables and then looking for FNL_DIR in the System Variables panel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can see if FNL_DIR is set by (1) opening a command window and typing "set FNL_DIR" or by going to the System control panel and choosing Advanced-Environment Variables and then looking for FNL_DIR in the System Variables panel.
Well is this feature accessible on Microsoft Visual Studio or do I go to my computer's system start menu? The toolbars on Visual Studio do not seem to have any such options. .....
Suppose I find it, then what do I do?
- Deb C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The instructions are telling you to add the lines with $(FNL_DIR) to those lists.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Steve,
Thanks for your response. I still have a few questions. My goal is to learn how to correctly install Intel FORTRAN with IMSL so that I do not have to depend on my system admin here since I am the only user of FORTRAN. I just do not want to take up too much resources. To that end I am drawing your attention to my post # 8 to # 12. (Mecej4 had some responses too.)
- If you see post # 8 then there I have posted the command lines that appeared when I clicked the button "..." after Libraries and Includes. From post # 9 (as per mecej4) it then appears that all I need to do is to type in the command $(FNL_DIR)\IA32\lib in these these boxes where those other commands appear. I need to enter exactly the same command also in Executables or only in Libraries and Includes? (This part needs some clarification.)
- Mecej4 in post # 9 wrote, "The question is whether the architecture symbol (IA32) occurs before or after lib, and similarly for include and bin." How do I make sure that I am doing things right here and not messing around with commands? I mean what is the precise command structure that I need not guess?
- Would it be better to uninstall Intel Visual FORTRAN with IMSL and then reinstall all over again, carefully following and noting down each and every step? (Some suggest that this procedure can eliminate uncertainties with commands etc.)
- thanks in advance,
Deb C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Deb,
The things you enter under Libraries and Includes are similar but not the same.
To the end of the Libraries list, with the Win32 tab selected. add:
$(FNL_DIR)\IA32\lib
To the end of the Includes list, with the Win32 tab selected, add:
$(FNL_DIR)\IA32\include\dll
If the program now fails to build, please show us what the errors are.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Deb, you need to recognize that IFort and IMSL are two packages and most customers who install IFort do not install IMSL. The IMSL installation process configures the command line environment correctly to make linking IFort programs with IMSL libraries easy (but not automatic). To make IMSL work with IFort inside Visual Studio, you need to do one-time (well, until you reinstall a new version of IFort) configuration as described in this thread. However, you are using an old version of IFort and an old version of IMSL, so we do not know the directory structures of the two packages unless we ourselves have the same versions. Therefore, although it is easy to infer the procedure for configuring Visual Studio based on the directory structures, we cannot give you the exact steps. It appears that it is difficult for you to tell us about the directories where IMSL is installed, so we are stuck until someone else with the same version of IMSL, or your system administrator, can give us that information.
Simply reinstalling IFort or IMSL will waste time and accomplish nothing. You will come back to the same point, where you have to configure Visual Studio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
It worked like exactly you wrote in your post # 16. I really appreciate your help on this. It saves me from going through nightmares - technical reports and papers to be submitted !!!!
Mecej4:
Thanks for all the help. I appreciate the fact that I can count on you and Steve in times of FORTRAN problems like this.
- Deb C. (aka Deb Chatterjee)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Deb,
You're very welcome! I have just one request of you - it's "Fortran", not "FORTRAN" - and has been for 24 years.

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