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

New IVF Projects in Visual Studio 2005 do not link properly with x64

William_Sailor
Beginner
944 Views
I have recently upgraded to IVF 11.1.035, including x64 on my MS Visual Studio 2005 setup. The linking does not seem to work. For instance, if the main program in is projectA, requiring the used of Lib1 and Lib2 in the same solution. Upon link time it says "LNK2019: unresolved external symbol . . ." for each of the routines needed from Lib1. This is with Lib1 and Lib2 listed as dependencies of projectA. The verbose output shows that, e.g., Lib1.lib is being searched.

I tried creating a new solution with VS 2005, containing the two library projects and a new main program project. No difference in outcome. In either case it only seems to happen with x64 selected.

Linking still seems to work OK with Win32. In this same solution, I just switch to Win32 and the compilation and linking is just fine.
0 Kudos
6 Replies
Steven_L_Intel1
Employee
944 Views
Would you please attach the buildlog.htm files for the library and executable projects? Are you using the "Target Platform" list to switch platforms?
0 Kudos
William_Sailor
Beginner
944 Views
Would you please attach the buildlog.htm files for the library and executable projects? Are you using the "Target Platform" list to switch platforms?

The menu that I am using gives the name of "Solution Platform"

Here are the paths to the buildlog.htm files

\toasteruserssailorMYNlibLib1x64Debug
\toasteruserssailorMYNlibXGENx64Debug
\toasteruserssailorMYNlibMYNconsoleMYNconsoleDebug
0 Kudos
Steven_L_Intel1
Employee
944 Views
Your Console application is being built as a 32-bit configuration:

Build started: Project: MYNconsole, Configuration: Debug|Win32

Select Build > Configuration Manager. Make sure that all three projects have platform X64 selected when you specify X64 as the Active solution platform.
0 Kudos
William_Sailor
Beginner
944 Views
Your Console application is being built as a 32-bit configuration:

Build started: Project: MYNconsole, Configuration: Debug|Win32

Select Build > Configuration Manager. Make sure that all three projects have platform X64 selected when you specify X64 as the Active solution platform.

Hi Steve,

You are right that the console project is set for the Win32 platform, while the libraries are set for X64.
But guess what, it wont let me select x64 for the console. Under "platform" the little menu shows either
X64 or Win32 for the libraries, but shows only Win32 for the console.

Bill
0 Kudos
Steven_L_Intel1
Employee
944 Views
Try selecting the New... option and getting X64 that way. For reasons unclear to me, I sometimes find I have to do that.
0 Kudos
William_Sailor
Beginner
944 Views
Try selecting the New... option and getting X64 that way. For reasons unclear to me, I sometimes find I have to do that.


You again are right. I have to select new, and uncheck the box "Create new solution platforms" Thanks.
0 Kudos
Reply