No, the compiler needs to get the right directories and I am not sure that F12 is equivalent to the options that the compiler gets. You will need to check the full commands and the build logs. As I am not overly familiar with VSCode I can only make very wild guesses.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
Fatal Error: Cannot open module file
|
8 | 2387 | October 22, 2023 | |
| Cannot find module error in vscode with Modern Fortran, fpm and fortls | 5 | 247 | March 15, 2025 | |
| Modern Fortran on VSCode fails to recognize external includes | 6 | 2164 | January 10, 2024 | |
| Modern Fortran: No Go to Definitions, Go to Implementations popup | 5 | 2127 | October 21, 2022 | |
|
Fatal Error: Can't open module file 'first_module.mod' for reading at (1): No such file or directory
|
3 | 7872 | May 25, 2022 |