<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Clean and modules]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=351&amp;type=atom" />
	<updated>2014-06-14T15:24:56Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=351</id>
		<entry>
			<title type="html"><![CDATA[Re: Clean and modules]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=1432#p1432" />
			<content type="html"><![CDATA[<p>David,</p><p>It would be possible to do this, but I&#039;d prefer to shy away from having Simply Fortran &quot;manage&quot; files (your .mod files in this case) that it isn&#039;t normally involved with.&nbsp; A better alternative might be to allow custom Makefile commands that could be added to a build step so that you can add &quot;del *.mod&quot; to your Clean step but still keep the automatic Makefile building.</p><p>The <em>-J</em> flag is not deprecated.&nbsp; It is needed by the Fortran compiler to tell it where to place modules that it compiles.&nbsp; The <em>-I</em> flag only specifies a location to search for modules as opposed to the location where compiled modules should be placed.&nbsp; </p><p>In your case, one thing you could do is allow Simply Fortran to place its modules in the project directory as well.&nbsp; If you open Project Options and go to the File Locations tab, you can leave &quot;Module Directory&quot; blank, and all modules should be left in the project directory.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-06-14T15:24:56Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=1432#p1432</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Clean and modules]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=1431#p1431" />
			<content type="html"><![CDATA[<p>Would it be possible for &quot;Clean&quot; in the build menu to remove *.mod files from the project directory when they have the same name as a *.mod file in the &quot;modules&quot; sub-directory.</p><p>Although SF puts its *.mod files in the &quot;modules&quot; sub-directory, I have found that if there are .mod files in the project directory gfortran will try to use these first before looking in the &quot;modules&quot; sub-directory. This is probably a quirk of the search path that gfortran uses. Even though you have used -Jmodules it still looks in the project directory first. You can test this by putting an empty .mod file in the project directory.</p><p>I sometimes have *.mod files in my project directory because I sometimes compile my source code using other compilers (yes naughty). But then the *.mod files I generate prevents SF from building my project (since they are not GNU ones). Since &quot;Clean&quot; doesn&#039;t help, I have to remove these by hand currently.</p><p>An alternative would be to fix -Jmodules in the makefile (replace with -Imodules ?) so that the project directory isn&#039;t searched. I seem to recall -J was deprecated as some point, but I am not sure. I have been using -Imodules here in other work, unrelated to SF.</p>]]></content>
			<author>
				<name><![CDATA[davidb]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3463</uri>
			</author>
			<updated>2014-06-14T10:45:35Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=1431#p1431</id>
		</entry>
</feed>
