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

Creating .exe file from Fortran

arman_g_
Beginner
3,826 Views

Hi, So I am very new to Fortran and just started working with Microsoft Visual Studio.

I was wondering how it is possible to export the code as .exe so it would be readable by other computers with no compiler .

Thanks, 

Arman 

0 Kudos
1 Solution
Steven_L_Intel1
Employee
3,826 Views

Your program will be an EXE. But by default it will require run-time DLLs to be installed. If you want to avoid that, in most cases you can set the project property Fortran > Libraries > Use Runtime Library to "Multithreaded" (not Multithread DLL). Make sure you build a Release configuration for running on a different computer.

View solution in original post

0 Kudos
3 Replies
Steven_L_Intel1
Employee
3,827 Views

Your program will be an EXE. But by default it will require run-time DLLs to be installed. If you want to avoid that, in most cases you can set the project property Fortran > Libraries > Use Runtime Library to "Multithreaded" (not Multithread DLL). Make sure you build a Release configuration for running on a different computer.

0 Kudos
arman_g_
Beginner
3,826 Views

Hi Steve,

Thanks for your comment, So for clarifying I wanted to ask this question:

My program is not huge in size but the outputs would be in the order of hundreds of gigabytes. I was wondering if I can change the current fortran code I have to a file that could be run on any other computer (without visual studio or anything) and still get the solutions? Since transporting solutions would be very time consuming

 

Thanks,

Arman  

 

0 Kudos
Arjen_Markus
Honored Contributor II
3,826 Views

If you follow Steve's advice, the resulting executable file will be self-contained. You can simply copy it to another machine and run it from there.

Regards,

Arjen

0 Kudos
Reply