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

make command prompt OneAPI VScode

benjaajf
Beginner
647 Views

Hello, I am using the prompt of oneAPI in visual studio code to run some fortran code. I would like to create a makefile to compile + run the code. I create a makefile for my code, but when a try to use the make command in the command prompt of OneAPI says that make command is not found. Do you know how can I use a makefile, if it is possible? Or which is the best way to compile + run the .exe without doing separately.

 

PS. Fortran and the compiler works fine. If a compile and after run the .exe works fine, but I would like to do it in one step.

 

0 Kudos
1 Reply
Steve_Lionel
Honored Contributor III
564 Views

I'm going to assume this is on Windows. "make" is not a tool provided by Microsoft on Windows, including VS Code. A similar tool called nmake is provided, but the makefile syntax is a bit different.  You could also install cmake from an external source. Intel does not provide any of these.

Typically, on Windows one would use a .bat file for this.

0 Kudos
Reply