Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26873 Discussions

Combination of Fortran files and creating the vfproj file

Oktay_1
Beginner
351 Views

Dear All,

I have just joined the Intel community, and I am trying to gain some experience in coding in Fortran.

My question might be very simple but I was just wondering how multiple .F90 files cam be combined to generate an EXE file and VFPROJ file in the end.

I do in advance thank you so much for advice and assistance.  

Kind regards,

Oktay

0 Kudos
1 Solution
Steve_Lionel
Black Belt Retired Employee
338 Views

A simple way to do this in Visual Studio, once you reach the full VS interface, is:

  1. File > New > Fortran project from existing code...
  2. Click the Add button to select a folder containing your Fortran sources. Click Next.
  3. On the next screen, select Application as the project type and click Finish.

With this you will get ALL of the Fortran sources in that folder.

A better way, assuming you have VS2019, is open VS and:

  1. Click "Create a new project"
  2. In the language dropdown, select Fortran.
  3. In the project type dropdown, select Console
  4. Click "Empty Project" and click Next.
  5. Enter a project name and click Next.
  6. Right click on Source Files, then select Add > Existing Items. Select your Fortran source(s) and click Add.

Now you have a project you can build.

 

View solution in original post

2 Replies
Steve_Lionel
Black Belt Retired Employee
339 Views

A simple way to do this in Visual Studio, once you reach the full VS interface, is:

  1. File > New > Fortran project from existing code...
  2. Click the Add button to select a folder containing your Fortran sources. Click Next.
  3. On the next screen, select Application as the project type and click Finish.

With this you will get ALL of the Fortran sources in that folder.

A better way, assuming you have VS2019, is open VS and:

  1. Click "Create a new project"
  2. In the language dropdown, select Fortran.
  3. In the project type dropdown, select Console
  4. Click "Empty Project" and click Next.
  5. Enter a project name and click Next.
  6. Right click on Source Files, then select Add > Existing Items. Select your Fortran source(s) and click Add.

Now you have a project you can build.

 
Oktay_1
Beginner
329 Views

Dear Steve,

Thank you so much! Much appreciated!

Kind regards,

Oktay

Reply