<div dir="ltr">Was this mail seen? I cannot be sure because it is the first time I posted.<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 26, 2014 at 2:48 PM, Onur Solmaz <span dir="ltr"><<a href="mailto:onursolmaz@gmail.com" target="_blank">onursolmaz@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I am building a Fortran 90 library and its extension. .mod files get generated inside the build/temp.linux-x86_64-2.7/ directory, and stay there; so when building the extension, the compiler complains that it cannot find the modules<br>


This is because the include paths do not have the temp directory. I can work this around by adding that to the include paths for the extension, but this is not a clean solution.<br>What is the best solution to this?<br><br>


I also want to be able to use the modules later, because I will distribute the library. It is some other issue whether the modules should be distributed with the library under /usr/lib or /usr/include, refer to <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49138" target="_blank">this</a> bug. <br>


<br>Also one can refer to <a href="https://gcc.gnu.org/ml/fortran/2011-06/msg00117.html" target="_blank">this</a> thread. This is what convinced me to distribute the modules, rather than putting module definitions into header files, which the user can include in their code to recreate the modules. Yet another way is to use submodules, but that feature is not available in Fortran 90.<br>


</div></div>
</blockquote></div><br></div></div></div>