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

makefile support or visual studio code support?

Feng__Jesse
New Contributor II
734 Views

I have a project that uses a makefile to build, it is fairly large and utilizes openMPI and GPU and etc. The current issue is Visual Studio community does not seem to have makefile support, and while Visual Studio Code can make use of makefile with an extension from 2021, it does not have the same Fortran support. Has anyone tried this before and is there a way to use VS Community or VS Code to debug a Fortran project with makefile? Or is the only way is to remove the makefile (since it is essentially just compiler flags and linkages) and then debug with Visual Studio normally?

0 Kudos
2 Replies
jimdempseyatthecove
Honored Contributor III
691 Views

Depending on what is dependent on other what you can set the pre-build event or post-build event to run your make.

jimdempseyatthecove_0-1699113214476.png

I am not sure if the MS VS dependency check occurs before of after the Pre_Build event (and the MS VS build occurs after the Pre-Build event). If this is the case, then both MS VS and the make file will compile the same files. Annoying, but benign. If the MS VS dependency check occurs after the Pre-Build event, then either:

a) MS VS will not compile anything (it may also not link)

b) Anything it compiles will be something missed in your make file.

 

When using Post-Build event, anything compiled by the make file will be something in addition to what is contained in your MS VS Solution/Project (e.g. a source file in the folder but not included in the Project).

 

Jim Dempsey

0 Kudos
JohnNichols
Valued Contributor III
681 Views

Secundum id quod ab aliis pendet, id quod praeclarum eventum vel eventum post-aedificare potes ad tuum fac currentem instituere potes.

Ok, now I understand what you are trying to say in your first sentence.  Latin has its advantages

0 Kudos
Reply