I have a Windows 11 machine. Is it a good strategy using gFortran inside WSL2 and editing files with Geany (or similar) from Windows? My point is having a native package management and avoiding potential problems when using libraries such as SuperLU (Windows-specific build issues, I mean).
I could also run Geany from WSL2, but I’ve been told that this alternative takes more resources.
I don’t know what would happen with debugging.
As you may deduce from this question, my experience is null. I am asking about your experience here.
I was assuming that the hybrid setting (Linux + Windows 11), meaning WSL2 + (VS Code + WSL extension), was less ‘painful’ (meaning less friction) in terms of using third-party libraries.
I’ve read on the Internet (I might have used some IA ) that SuperLU is indeed available via `pacman` (no idea of what this is) within MSYS2, meaning that it is precompiled. However, for other libraries that aren’t in the pacman repositories, I should have to compile from the source with mingw-w64 if I am not wrong, and I might run into some typical Windows issues (like paths with backslashes, case sensitivity, DLL hell, dependencies that don’t resolve well, or builds that fail because they’re not purely POSIX). I therefore understand that the process of unisg third-party libraries wouldn’t be as easy as on Linux/WSL.
Actually, the last time I was trying to use C, I run into some problems to make the GSL library available in my code. I got upset about all the compiling thing because I felt it implied too many steps and it may not end successfully too often.
Please, let me know your thoughts and experience on this.
Simply fortran works great in Linux. I do all my coding using nvim, but I purchased Simply Fortran for the ease of using the debugger.
I’m looking forward to seeing what Jeff means by “simply fortran” working with WSL. Seems to be working just fine?
I use WSL on windows when I don’t feel like using my laptop, and the free simply fortran (I believe I got from the apt or snap repository) works great, but you won’t have a debugger with the free version. I have the full linux version (with debugger) on my linux laptop and the full windows version on windows 11 pro.
The linter is also very good. There are all sorts of linting/debugging TUI’s, but they are slow, buggy, and distracting. For me, that stuff is better done using a GUI when/if you need it.