# Using Windows API from gfortran

**URL:** <https://fortran-lang.discourse.group/t/using-windows-api-from-gfortran/8503>\
**Category:** Uncategorized\
**Created:** [August 21, 2024, 3:45pm UTC](https://fortran-lang.discourse.group/t/using-windows-api-from-gfortran/8503 "2024-08-21T15:45:05Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![davidpfister](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/davidpfister/32/3949_2.png) [@davidpfister](https://fortran-lang.discourse.group/u/davidpfister)\
**Post date:** [August 22, 2024, 3:13pm UTC](https://fortran-lang.discourse.group/t/using-windows-api-from-gfortran/8503/15 "2024-08-22T15:13:56Z")

</div>

Which functions exactly are you looking at @jacobwilliams?  
Something else to keep in mind: gfortran does not have the macro `_WIN32` defined by default (unlike the intel compilers). That means that if you use fpm you need to add it in your toml and then your config is not cross platform anymore. There were [discussions](https://fortran-lang.discourse.group/t/fpm-platform-specific-instructions-to-linker-on-fpm-toml/7296/11) about supporting os specific directives in the toml but I am not aware about any development in that direction.

---

_[View the full topic](https://fortran-lang.discourse.group/t/using-windows-api-from-gfortran/8503)._
