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

Did I install 11.0 correctly to compile 64-bit?

mjsmith0
Beginner
721 Views
I'm an IT admin trying to help a programmer install Visual Fortran Professional 11.0 on his XP 32-bit workstation so he can compile applications for Vista 64-bit. I know next to nothing about programming, but I hope I can get him up and running with your help.

I ran the full installation and everything went smoothly. Iwent toTools > Options > Intel Visual Fortran > Compilers and selected x64 as the Target Platform (the only other choice was Win32).

To test, I selected File | Open | Project/Solution, then selected one of the sample programs that came with the software (Puzzle). I was able to build it and it runs just fine, but while building it the message window says "Compiling with Intel Visual Fortran 11.0.072 [IA-32]...". This makes me think it is not really compiling the application to take advantage of 64-bit.

I bet I am doing something very obviously wrong. Can anyone point me in the right direction?
0 Kudos
1 Solution
Steven_L_Intel1
Employee
721 Views

Yes - but you're not the first to make this mistake - and won't be the last. Indeed, I should soon have a tutorial out on the subject.

The Tools > Options page does not select between 32-bit and 64-bit for projects. This screen is where you configure each compiler (32-bit and 64-bit) for when you do build for each platform. It is not a switch or toggle.

It is unfortunate that Microsoft made the process as convoluted as they did. Here's what you need to do.

  1. Open the project.
  2. Select Build > Configuration Manager
  3. In the new window that comes up, pull down Active Solution Platform and select
  4. In the new window, select x64 as the new platform (it is probably already filled in)
  5. Click OK, then Close.
Now you will see, to the right of "Debug" in the top menu, the Solution Platform has changed from Win32 to x64. Your project is NOW in x64 mode and you can build it. If you wish to switch back to Win32, use that dropdown.

Let me know if this helps.

View solution in original post

0 Kudos
2 Replies
Steven_L_Intel1
Employee
722 Views

Yes - but you're not the first to make this mistake - and won't be the last. Indeed, I should soon have a tutorial out on the subject.

The Tools > Options page does not select between 32-bit and 64-bit for projects. This screen is where you configure each compiler (32-bit and 64-bit) for when you do build for each platform. It is not a switch or toggle.

It is unfortunate that Microsoft made the process as convoluted as they did. Here's what you need to do.

  1. Open the project.
  2. Select Build > Configuration Manager
  3. In the new window that comes up, pull down Active Solution Platform and select
  4. In the new window, select x64 as the new platform (it is probably already filled in)
  5. Click OK, then Close.
Now you will see, to the right of "Debug" in the top menu, the Solution Platform has changed from Win32 to x64. Your project is NOW in x64 mode and you can build it. If you wish to switch back to Win32, use that dropdown.

Let me know if this helps.
0 Kudos
mjsmith0
Beginner
721 Views
That was it exactly! You just made me look like a genius. Thank you!

Mary
0 Kudos
Reply