<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — why does one function need an Implicit type and another not?]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=867&amp;type=atom" />
	<updated>2022-09-07T14:52:16Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=867</id>
		<entry>
			<title type="html"><![CDATA[Re: why does one function need an Implicit type and another not?]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3964#p3964" />
			<content type="html"><![CDATA[<p>Do you currently have a project with multiple Fortran source files?&nbsp; There aren&#039;t multiple <strong>program</strong> declarations in this single file, but, if you have a project with multiple Fortran files, it is almost certainly compiling everything and encountering two <strong>program</strong>s.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2022-09-07T14:52:16Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3964#p3964</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[why does one function need an Implicit type and another not?]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3963#p3963" />
			<content type="html"><![CDATA[<p>Trying to draw numbers on a graphic window.<br />First function (Eight) works fine. But when I added the second function, I get a failed compile because:<br />&quot;Two Main programs at 1 and 2.&quot;&nbsp; What&#039;s up?</p><p><strong>program main</strong><br />use appgraphics<br />implicit none<br />&nbsp; &nbsp; integer::window <br />&nbsp; &nbsp; integer seven, eight, res<br />&nbsp; &nbsp; window = initwindow(800, 600)<br />&nbsp; &nbsp; res = eight(50,300,10) <br />&nbsp; &nbsp; res = seven(65,300,10)<br />&nbsp; &nbsp; call loop()&nbsp; &nbsp;<br />&nbsp; &nbsp; call closewindow(window)<br />end program main</p><p>integer <strong>function eight(x,y,r)</strong><br />&nbsp; &nbsp; use appgraphics<br />&nbsp; &nbsp; !Draws a figure eight of size r at start point (x,y).<br />&nbsp; &nbsp; integer x,y,r&nbsp; !r is the radius.<br />&nbsp; &nbsp; call circle(x+r,y+r,r)<br />&nbsp; &nbsp; call circle(x+r,y+3*r,r)<br />end function eight</p><p>integer <strong>function seven(x,y,s)</strong><br />&nbsp; &nbsp; use appgraphics<br />&nbsp; &nbsp; integer x, y, s<br />&nbsp; &nbsp; call bar(x,y,x+s,y+s)<br />end function seven</p>]]></content>
			<author>
				<name><![CDATA[jackmitchener]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=4073</uri>
			</author>
			<updated>2022-09-07T00:35:32Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3963#p3963</id>
		</entry>
</feed>
