<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — A Debugging Question.]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=421</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=421&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in A Debugging Question..]]></description>
		<lastBuildDate>Sat, 24 Jan 2015 17:55:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1832#p1832</link>
			<description><![CDATA[<p>Thanks to David and John.&nbsp; Really helpful information that has my program up and running!&nbsp; Also, those books were just what I was looking for.&nbsp; Thanks, again</p><p>Don</p>]]></description>
			<author><![CDATA[null@example.com (Don Hazlewood)]]></author>
			<pubDate>Sat, 24 Jan 2015 17:55:42 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1832#p1832</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1831#p1831</link>
			<description><![CDATA[<p>Sorry not to have replied sooner but I&#039;m pleased to see others have given excellent help.<br />For fortran manuals and references, search the web, not for &#039;GFortran&#039;, because that will just find references on the compiler extensions, compile-time switches and options etc, but for &#039;Fortran 95&#039;, &#039;Fortran 98&#039;, &#039;Fortran 2003&#039;, etc, where you&#039;ll find Fortran language references.<br />---<br />John</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Sat, 24 Jan 2015 14:40:59 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1831#p1831</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1830#p1830</link>
			<description><![CDATA[<div class="quotebox"><cite>Don Hazlewood wrote:</cite><blockquote><p>If you know where to find one, I&#039;d really appreciate it.</p></blockquote></div><p>Have a look at books 4, 5, 6 and 8 on this list for books specifically about Fortran 95.</p><p>The other books are mostly Fortran 77, which are also worth having for reference.</p><p><a href="http://www.linuxlinks.com/article/20140503043331241/9BestFreeFortranBooks-Part2.html">http://www.linuxlinks.com/article/20140 … Part2.html</a></p>]]></description>
			<author><![CDATA[null@example.com (davidb)]]></author>
			<pubDate>Sat, 24 Jan 2015 11:09:22 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1830#p1830</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1829#p1829</link>
			<description><![CDATA[<p>The use of Advance goes in the read or write statement, not the format statement</p><p>Example of non-advancing IO:<br /></p><div class="codebox"><pre><code>character(len=20) :: name
write(*, 10, advance=&#039;no&#039;) &#039;Enter your name: &#039;
read(*, 10) name
write(*, 10, advance=&#039;no&#039;) &#039;Hello &#039;
write(*, 10, advance= &#039;no&#039;) name
write(*, 10) &quot;, how are you?&quot;
10 Format (A)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (davidb)]]></author>
			<pubDate>Sat, 24 Jan 2015 10:54:43 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1829#p1829</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1826#p1826</link>
			<description><![CDATA[<p>Okay, I tried ADVANCE=&quot;NO&quot; as follows:</p><p>&nbsp; &nbsp;85 Format (11x,i4,1x,2f8.0,f7.2,f8.3,f11.2,f10.2,f8.3,ADVANCE=&quot;NO&quot;)</p><p>and I get Error: Positive width required in format specifier D at (1).&nbsp; &nbsp;Any suggestions????</p><p>Don</p>]]></description>
			<author><![CDATA[null@example.com (Don Hazlewood)]]></author>
			<pubDate>Sat, 24 Jan 2015 00:29:32 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1826#p1826</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1825#p1825</link>
			<description><![CDATA[<p>Thanks, John.&nbsp; No - I haven&#039;t been able to find just a basic programmer&#039;s guide to gfortran.&nbsp; Everything I look at seem to be oriented to command line options, etc.&nbsp; If you know where to find one, I&#039;d really appreciate it.</p>]]></description>
			<author><![CDATA[null@example.com (Don Hazlewood)]]></author>
			<pubDate>Fri, 23 Jan 2015 23:32:40 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1825#p1825</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1824#p1824</link>
			<description><![CDATA[<p>ADVANCE=&quot;NO&quot; works for me, Don.<br />Have you checked the exact syntax.</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Fri, 23 Jan 2015 21:46:46 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1824#p1824</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1823#p1823</link>
			<description><![CDATA[<p>Okay, I&#039;m pretty sure the problem centers around the way Compac and gFortran handle structures. I re-wrote a part of the program to make it compatible with gFortran and it got rid of the SIGSEGV error.</p><p>And on to another question: (quit sighing, Jeff)&nbsp; In Fortran IV, you could put a backslash (\) at the end of a format statement to tell the printer not to issue a carriage return/line feed.&nbsp; In other words, don&#039;t advance the printer.&nbsp; gFortran doesn&#039;t like this.&nbsp; I was told that you could enter &#039;advance=no&#039; in place of the backslash to kill the CR/LF.&nbsp; Unfortunately, all it does is print &quot;advance=no&quot; followed by a CR/LF.&nbsp; Is there an equivalent to the backslash?&nbsp; </p><p>Also, is there a good, general purpose Programmer&#039;s Guide that covers the basic fortran commands - not compiler options, etc. that would be helpful to me?&nbsp; </p><p>Don</p>]]></description>
			<author><![CDATA[null@example.com (Don Hazlewood)]]></author>
			<pubDate>Fri, 23 Jan 2015 19:21:06 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1823#p1823</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1822#p1822</link>
			<description><![CDATA[<p>Thanks for the offer, Jeff.&nbsp; I have a couple more things I think may be causing it.&nbsp; I&#039;m finding that arrays passed to subroutines are not transferring correctly (which means I&#039;ve goofed somewhere in transporting from Compaq to Simply Fortran).&nbsp; I&#039;ll get back to you as soon as I find out what&#039;s happening.</p><p>Don</p>]]></description>
			<author><![CDATA[null@example.com (Don Hazlewood)]]></author>
			<pubDate>Thu, 22 Jan 2015 23:33:18 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1822#p1822</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1821#p1821</link>
			<description><![CDATA[<p>Don,</p><p>Have you tried initialising variables right at the start of the program - even those which should not need initialising yet?<br />I don&#039;t know if doing so would have this effect but my thought is that, as SIGSEGV faults appear to be something to do with accidentally trying to use memory which the executable does not own, this might force the compiler to allocate memory to variables from the very outset? <br />--- <br />John</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Thu, 22 Jan 2015 23:25:33 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1821#p1821</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1820#p1820</link>
			<description><![CDATA[<p>And John, I haven&#039;t forgotten about your SIGSEGV issue.&nbsp; I&#039;ll give it another go tomorrow morning looking for a way around it.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 22 Jan 2015 22:33:06 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1820#p1820</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1819#p1819</link>
			<description><![CDATA[<p>Don,</p><p>If you&#039;re comfortable with doing so, you can email the source code to me, and I can have a look/try to run it on my end.&nbsp; I can&#039;t explain why you&#039;re seeing the SIGSEGV from your description.</p><p>With respect to DFLIB and KERNEL32, both are unlikely to make an appearance in Simply Fortran.&nbsp; DFLIB is pretty big, there would at least be a chance to port it.&nbsp; However, it is rather unlikely, especially because many of its more commonly used features are superseded by Fortran 2003 and 2008 intrinsics.&nbsp; KERNEL32 was part of Digital&#039;s/Compaq&#039;s/HP&#039;s port of the Windows API directly to Fortran.&nbsp; It is only one of a set of libraries (along with USER32, GDI32, COMCTL32...) that are part of the port.&nbsp; Approximatrix has no plans to provide access to the Windows API from Fortran directly, especially because it gets a bit messy if you try to do so in a standards-compliant manner (Digital/Compaq/HP took some liberties with how Windows pointers are sized and assumed 32-bit, for example).</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 22 Jan 2015 22:32:26 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1819#p1819</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1818#p1818</link>
			<description><![CDATA[<p>I&#039;ve deleted, re-entered, re-named, moved its location, all to no avail.&nbsp; I renamed it &quot;kerr = 0&quot; thinking that &quot;ierr&quot; might be a system reserved word - didn&#039;t help.&nbsp; So I moved where it was being set - still didn&#039;t help.&nbsp; The variable is brought into the program as an argument to a subroutine, with the intent of OUT.&nbsp; Changed it to InOut - no help.</p><p>I guess what&#039;s bothering me the most is the fact that this program compiled and ran under the old Compaq Fortran.&nbsp; That also brings up another question -- is there an equivalent to Compaq&#039;s DFLIB and KERNAL32 packages? They had some good file handling routines.</p>]]></description>
			<author><![CDATA[null@example.com (Don Hazlewood)]]></author>
			<pubDate>Thu, 22 Jan 2015 21:32:04 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1818#p1818</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1817#p1817</link>
			<description><![CDATA[<p>SIGSEGV fault is a program development killer.<br />I long to see the back of it.</p><p>Just some random thoughts.&nbsp; I&#039;m sure you&#039;ll have considered far more than these already . . ...</p><p>Are the error conditions which might arise capable of being found by explicit tests for each one (such as non-existent files, files already in use, and so forth)?&nbsp; You could then omit the &quot;ierr=0&quot; part of the offending statement.</p><p>Alternatively, is there anything strange lurking at the end of any previous lines, possibly off-screen to the right, which might be triggering the trip, quite misleadingly, on the &quot;ierr=0&quot; line?<br />---<br />J.</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Thu, 22 Jan 2015 20:46:08 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1817#p1817</guid>
		</item>
		<item>
			<title><![CDATA[Re: A Debugging Question.]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=1816#p1816</link>
			<description><![CDATA[<p>Tried running the program outside the debugger and still get the SIGSEGV error.&nbsp; I can track it right up to a statement &quot;ierr = 0&quot; and that&#039;s when I get the error.&nbsp; Unfortunately, there is no way to go around this point in the program, so I&#039;m stuck.&nbsp; If anyone has a brilliant idea (or even just an idea), I&#039;d sure be grateful to hear it.</p><p>Don</p>]]></description>
			<author><![CDATA[null@example.com (Don Hazlewood)]]></author>
			<pubDate>Thu, 22 Jan 2015 19:55:15 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=1816#p1816</guid>
		</item>
	</channel>
</rss>
