- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I’m using Visual Studio 2017 Community with the Intel Fortran compiler. With my current configuration the “C_calls_Fortran" example contained in the “MixedLanguage" package from Intel builds and runs on Win32 but does not fully build on x64. I get a LNK1104 error, cannot open file 'kernel32.lib’ with x64.
I implemented the configuration setup at: https://software.intel.com/en-us/articles/configuring-visual-studio-for-mixed-language-applications
for x64.
I’ve looked at and tried a lot of examples in the forum to no avail. In Project Properties, settings in VC++ Directories are:
Include Directories: $(IFORT_COMPILER18)\compiler\include\intel64;$(IncludePath)
Library Directories: $(IFORT_COMPILER18)\compiler\lib\intel64;$(LibraryPath)
there are more than a few versions of kernel32.lib loaded on my computer and I’m guessing that I’m referencing the wrong one. The value of IncludePath is:
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_20189.1.156\windows\\compiler\include;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\T
Ideas for fixing this problem?
Thanks.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It wouldn't be the INCLUDE environment variable that controlled finding a .lib file; it would be the LIB environment variable.
Please check the LibraryPath
--Lorri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found the problem. I was missing a paren in one of the macros. Doh!

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