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

C++/Fortran: Cannot open 'ifconsol.lib' VS2013/XE 2013sp1

Mike_W_1
Beginner
449 Views

I recently upgraded to a new HD and re-installed all my development tools. In the past, I followed many topics answered by Steve Lionel to resolve fortran/c++ issues. I'm not sure what's wrong, but I can't seem to get things to work this time. 

My VS solution contains a C++ empty project and a static fortran library. I added lib/ias32 to VC++ directories for debug/release in win32 (everything is win32 atm) and set the C++ project to depend on the fortran project. The problem is that (.lib) files aren't being seen unless I add them to the C++ source folder directly (drag and drop into VS). If I edit the C++ proj's properties->linker->additional library dependencies and add the path to the ias32 libraries, I get LNK1104. What am I missing?

Thanks!

0 Kudos
1 Solution
Steven_L_Intel1
Employee
449 Views

If you followed the steps in the article, you would not have needed that, and I don't recommend that method at all. Instead you could add $(IFORT_COMPILER14)\compiler\lib\ia32\ to additional library directories. By using *.lib that way you're randomly linking to every library in the folder, some of which duplicate entry points.

View solution in original post

0 Kudos
5 Replies
Mike_W_1
Beginner
449 Views

I also want to note that adding all the (.lib) files via drag and drop onto the C++ proj's source folder allows the build to go through.

0 Kudos
Steven_L_Intel1
Employee
449 Views

This article has answers to your questions. Read it all carefully.

0 Kudos
Mike_W_1
Beginner
449 Views

I've read that document (have it saved on my computer actually). I think I managed to get things to work without that step the first time I did it, but I did a lot of things so I'm not sure which one caused the problem to go away. However, adding the following line to Configuration Properties->Linker->Additional Dependencies made it work.

$(IFORT_COMPILER14)\compiler\lib\ia32\*.lib

0 Kudos
Steven_L_Intel1
Employee
450 Views

If you followed the steps in the article, you would not have needed that, and I don't recommend that method at all. Instead you could add $(IFORT_COMPILER14)\compiler\lib\ia32\ to additional library directories. By using *.lib that way you're randomly linking to every library in the folder, some of which duplicate entry points.

0 Kudos
Mike_W_1
Beginner
449 Views

Okay, I think what happened was that.. I wrote ias32 instead of ia32. That explains a lot..

0 Kudos
Reply