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

64 Bit Exe Compiled on 32 Bit System cannot run on 64 bit Exe

Ngu_Soon_Hui
Beginner
1,440 Views

I have a 32 bit Windows XP, and on the machine I have Intel Visual Fortran 11.0 installed. I want to compile 64 bit exe so that the it can run on 64 bit Windows System.

After the compilation, I copy the exe, along with everything inside "C:\\Program Files\\Intel\\Compiler\\11.0\\066\\fortran\\Bin\\IA32_Intel64", "C:\\Program Files\\Intel\\Compiler\\11.0\\066\\fortran\\lib\\intel64" , "C:\\Program Files\\Intel\\Compiler\\11.0\\066\\fortran\\mkl\\em64t\\bin" and "C:\\Program Files\\Intel\\Compiler\\11.0\\066\\fortran\\mkl\\em64t\\lib" to a 64 bit Windows XP. So the exe and the prerequisites are in the same directory.

However, when I tried to run the exe, I got a "The system cannot execute the specified program" error.

Is there anything wrong with my setup or vfproj?

I have attached the vfproj and the f file for your perusal.

0 Kudos
1 Solution
Steven_L_Intel1
Employee
1,440 Views
You built a debug configuration linked against the DLL libraries. This is not redistributable. Rebuild it as a Release configuration and you should fare better.

View solution in original post

0 Kudos
5 Replies
Steven_L_Intel1
Employee
1,440 Views
Please zip and attach the EXE.
0 Kudos
Ngu_Soon_Hui
Beginner
1,440 Views

Here it is.

Do let me know if you need more, thanks.

0 Kudos
Steven_L_Intel1
Employee
1,441 Views
You built a debug configuration linked against the DLL libraries. This is not redistributable. Rebuild it as a Release configuration and you should fare better.
0 Kudos
Ngu_Soon_Hui
Beginner
1,440 Views
Thanks, just want to ask; does this mean that I have to build all of my fortran libraries and exes as release ?
0 Kudos
Steven_L_Intel1
Employee
1,440 Views
If you want to use them on a PC that doesn't also have Intel Visual Fortran installed, yes.
0 Kudos
Reply