Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29250 Discussions

Continue problems to link IMSL with during a compilation

desouzasantos
Beginner
2,682 Views
I am using a 64b Windows basis and compiling programs as I used to do with my other computer. All necessary programs from Intel are in place using the correct versions, as instructed before.
My main program includes the following lines:
INCLUDE 'link_fnl_static.h'
!DEC$ OBJCOMMENT LIB:'libiomp5md.lib'
However, the error message:
Error 1 error #5102: Cannot open include file 'link_fnl_static.h' C:\\CeSFaMB\\CeSFaMB_403\\Source\\Main.for 189
continues to appear. How this problem can be solved? Thank you.
0 Kudos
23 Replies
mecej4
Honored Contributor III
2,109 Views
Please read this recent thread and see if the recommendations given there can solve your problem.
0 Kudos
Steven_L_Intel1
Employee
2,109 Views
I wonder if the lines in your source are not exactly what you typed in here. Would you please ZIP the source and attach it to a reply here?
0 Kudos
desouzasantos
Beginner
2,109 Views
The section of my program with those lines are:
INCLUDE 'link_fnl_static.h'
!DEC$ OBJCOMMENT LIB:'libiomp5md.lib'
On the other hand, these lines have always worked in my other PC working at 32b.
0 Kudos
Steven_L_Intel1
Employee
2,109 Views
The error message suggests to me that those are not in fact the actual characters in the source.
0 Kudos
desouzasantos
Beginner
2,109 Views
Look at lines 566 and 567 of the attached folder
0 Kudos
psantos
Beginner
2,109 Views
desouzasantos,

Are you sure that you have configured the libraries and include paths for the X64 architecture compiler, under Visual Studio options? I'm thinking that you perhaps configured only the win32 compiler and forgot the x64... Just a guess.

Pedro
0 Kudos
desouzasantos
Beginner
2,109 Views
I think I did. In any case, please tell me how to do it just that I can redo it to be sure. Thank you.
0 Kudos
psantos
Beginner
2,109 Views
In Visual Studio go to TOOLS>OPTIONS>INTEL VISUAL FORTRAN> COMPILERS.
When inside this menu be sure to select the x64 platform. Now go to the libraries and add the path of your 64 bit IMSL lib. After this go to the includes and add the path of your 64 bit IMSL include. And that's it.

Pedro
0 Kudos
desouzasantos
Beginner
2,109 Views
I did all that, compiled under 64b, etc and still get the same Error message!
0 Kudos
psantos
Beginner
2,109 Views
desouzasantos,

Are you absolutely sure that you have installed a 64bit version of IMSL? Have you selected the appropriate paths of this 64bit installation? If you answer yes I'm not seing what the problem could be... Could you elaborate more on the problem?

Pedro
0 Kudos
Steven_L_Intel1
Employee
2,109 Views
Oh, I see. You didn't show the exact text of the error message and left out some of it. That's what confused me.

What do you have in Tools >Options > Intel Visual Fortran > Compiler, Platform: x64, Includes? Please attach a build log from a failed build.
0 Kudos
desouzasantos
Beginner
2,109 Views
My license has expired, but the company that sold me the Visual Fortran license told me that I could reinstall the IMSL and Fortran in any case. Then I downloaded the last version and installed. The installation was fine. Is it possible that I do need to renew the license for the whole thing to work?
0 Kudos
desouzasantos
Beginner
2,109 Views
I wonder if converting my Windows 7 operational system from 64b to 32b would solve the problems.
0 Kudos
Andrew_Smith
Valued Contributor I
2,109 Views
If you were to answer Steve Lionel's request for further information I am sure he will be better able to offer help.

I use IMSL on 64 bit XP with no issues. It is just a question of setting it up properly.
0 Kudos
Steven_L_Intel1
Employee
2,109 Views
You do not need a new license nor a new operating system. The problem is that you have not properly configured Visual Studio for IMSL. Please provide the information I requested and I'm sure we can straighten it out. Also, please make sure that the C:\Program Files (x86)\VNI\imsl\fnl600\Intel64 folder exists.
0 Kudos
desouzasantos
Beginner
2,109 Views
Yes. I am absolutely sure that all options regarding 64 b has been set. However, the previous problem continues, i.e., the message "Error 1 error #5102: Cannot open include file 'link_fnl_static.h' C:\CeSFaMB\CeSFaMB_403\Source\Main.for 189"
The line 189 at Main routine is:
INCLUDE 'link_fnl_static.h'
I am really anxious to have this problem solved. Such did not happen in my other machine working at 32b.
On the other hand, let me ask the following:
1) I have to distribute the executable generated from the compilation to users with 32 b operating systems. Can I compile my program on 32 b?
2) If so, can I apply the win32 basis, even if using a 64b machine?
thank you.
0 Kudos
desouzasantos
Beginner
2,109 Views
Steve, thank you.
The folderC:\Program Files (x86)\VNI\imsl\fnl600\Intel64 do exists in my system. However, the problem continues with message: "Error 1 error #5102: Cannot open include file 'link_fnl_static.h' C:\CeSFaMB\CeSFaMB_403\Source\Main.for 189" being issued after compilation. As I mentioned before the line 189 at Main code is:
INCLUDE 'link_fnl_static.h'
I wonder if anyone could help me. Thank you.
Marcio
0 Kudos
Steven_L_Intel1
Employee
2,109 Views
Marcio,

Please attach the buildlog.html from a failed build.
0 Kudos
desouzasantos
Beginner
2,109 Views
Pedro,
Sorry to bother you again. I did add path to my 64 plataform. How can I add the path to 64 bit IMSL lib? Could you please, help. I am not an expert in operational systems, therefore I would ask you to give me all details on how that should be done. Thank you very much.
Marcio
0 Kudos
Steven_L_Intel1
Employee
2,016 Views
Marco,

The steps to make the libraries are available in this article.
0 Kudos
Reply