- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Users,
I've followed the instructions to add the IMSL Library to Visual Studio but I still cannot build my code. I have Visual Studio 2005 and I am facing the (aparently famous) error "error #5102: Cannot open include file 'link_fnl_static.h".
My Libraries:
$(IFortInstallDir)lib\ia32
$(VCInstallDir)atlmfc\lib
$(VCInstallDir)lib
$(VCInstallDir)PlatformSDK\lib
$(FrameworkSDKDir)lib
$(FNL_DIR)\IA32\lib
My Includes
$(IFortInstallDir)include
$(IFortInstallDir)include\ia32
$(VCInstallDir)atlmfc\include
$(VCInstallDir)include
$(VCInstallDir)PlatformSDK\include
$(FrameworkSDKDir)include
$(FNL_DIR)\IA32\include\dll
My Command Line (part of it)
INCLUDE 'link_fnl_static.h'
!DEC$ OBJCOMMENT LIB:'libiomp5md.lib'
My Output
1>------ Build started: Project: teste, Configuration: Debug Win32 ------
1>Compiling with Intel(R) Fortran 11.0.061 [IA-32]...
1>main.f90
1>C:\Users\Documents\Visual Studio 2005\Projects\teste\teste\main.f90(11): error #5102: Cannot open include file 'link_fnl_static.h'
1>compilation aborted for C:\Users\Documents\Visual Studio 2005\Projects\teste\teste\main.f90 (code 1)
1>Project : warning PRJ0018 : The following environment variables were not found:
1>$(FNL_DIR)
1>
1>Build log written to "file://C:\Users\Documents\Visual Studio 2005\Projects\teste\teste\Debug\BuildLog.htm"
1>teste - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Any thoughts?
Thank you
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check the value of %FNL_DIR%, and check if the directory %FNL_DIR%\IA32\lib contains the include file in question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The instructions you read are for a more recent version than the one you're using. Assuming that you are licensed for the product with IMSL and that you have IMSL installed, it's probably easiest to substitute the full path to the folder containing the .h file. (And the same for the libraries.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, mecej4. Thank you, Steve Lionel (Intel). Yes, I am licensed and I have the IMSL installed on my machine too.
I reinstalled everything and now it is working.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page