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

Intel Fortran Composer and VStudio 2005 Build Order

John6
Beginner
707 Views
I just installed the new Intel Fortran Composer XE on my PC. I am using VStudio 2005 (old yes, we just haven't upgraded to VStudio 2010 yet), and have a solution with multiple Fortran projects and C++ projects. This solution built perfectly with IVF 11.1. One of the C++ projects has two dependencies to two Fortran static libraries which are also in the solution, as well at least one C++ library. I have noticed that the build order which worked well in IVF 11.1 does not seem to work right away with IVF Composer XE. The first and second build should have beenFortran static libraries, with the third a C++ library which depends on the first two Fortran static libraries. The build order worked perfectly under IVF 11.1, as I stated.
But under the new Fortran Composer XE, the build order starts with the C++ library, not the FORTRAN static libraries, and a link error was thrown as a result. Is there something different that needs to be set here? Why wouldsolutions with mixed language projects which built perfectly under IVF 11.1 not respect the proper build order when using Composer XE?
0 Kudos
5 Replies
Steven_L_Intel1
Employee
707 Views
Normally, the order in which you build libraries doesn't matter. It's Visual Studio that is determining the build order. In your C++ library project, look at the property Librarian > General > Link Library Dependencies. If it is set to Yes, try changing it to No and see if that helps. This will prevent the dependent libraries of the C++ project from being inserted into the C++ library.

If this doesn't help, can you provide the .sln, .vcproj and .vfproj files? I don't need any sources. Please zip these and attach to a reply here.
0 Kudos
John6
Beginner
707 Views
The C++ project Link Library Dependency setting was set to Yes. I untoggled and tried again, no change. Behavior seems the same regardles of the setting.
0 Kudos
John6
Beginner
707 Views
I have noticed now that the Fortran projects don't seem to buildif I right-click on the Fortran project and select "Project Only" and then "Build Only" (the Fortran project) (this after cleaning). I had thought that Composer XE integration was fully compatible with VStudio 2005. There must be something I am missing...
0 Kudos
John6
Beginner
707 Views

I ran the "repairvs05integration.exe" VStudio 2005 repair tool which I found on Intel's Site, although the installation seemed perfectly OK to me. After running this, the same thing happened.

However... It seems that the Intel Visual Fortran Visual Studio IDE source file extensions for "Free Format" and "Fixed Format" were blank. These settings are under VStudio "Tools... Options... Intel Visual Fortran... General".
After pressing the "Reset" buttons under Free Format and Fixed Format, and then restarting VStudio 2005, all problems were resolved. The fortran projects compiled when right-clicking on the project and selecting "Build Project Only", and the Build Order worked OK. So I think somehow these settings were not set on install, as somehow they had been removed. This behavior mey need some checking under VStudio 2005 integration.

0 Kudos
Steven_L_Intel1
Employee
707 Views
Thanks for letting us know.
0 Kudos
Reply