- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Depending on what is dependent on other what you can set the pre-build event or post-build event to run your make.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page