<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Suspected graphics linking problem in mixed Fortran/C program]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=315&amp;type=atom" />
	<updated>2014-02-14T17:17:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=315</id>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1294#p1294" />
			<content type="html"><![CDATA[<p>John, </p><p>I put a screenshot of it on your topic.</p><p>Thanks for the help!</p>]]></content>
			<author>
				<name><![CDATA[jason_b1975]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3516</uri>
			</author>
			<updated>2014-02-14T17:17:44Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1294#p1294</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1291#p1291" />
			<content type="html"><![CDATA[<p>Bernoulli tucked away in your code somewhere?</p><p>May I suggest you move this very interesting screenshot into the new forum thread I&#039;ve just created for all users to share GUI screenshots?<br />--- <br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2014-02-13T16:15:11Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1291#p1291</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1290#p1290" />
			<content type="html"><![CDATA[<p>Yes, it&#039;s an airfoil analysis program from MIT and it couples boundary layer modifications into the panel model to make it able to do viscous analysis (panel methods are inherently inviscid - i.e.: no boundary layer). It&#039;s available to the public under the GPL here:</p><p><a href="http://web.mit.edu/drela/Public/web/xfoil/">http://web.mit.edu/drela/Public/web/xfoil/</a></p><p>I wouldn&#039;t need to compile it on my own, except I want to make some additions to it.</p><p>Thanks for the help!<br />Jason</p>]]></content>
			<author>
				<name><![CDATA[jason_b1975]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3516</uri>
			</author>
			<updated>2014-02-13T15:58:19Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1290#p1290</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1288#p1288" />
			<content type="html"><![CDATA[<p>Jason,</p><p>Thanks for the screenshot!&nbsp; You just need to use the img tag rather than the url tag and add the proper image extension to the url, in this case: <a href="http://i.imgur.com/ffCXlgS.jpg">http://i.imgur.com/ffCXlgS.jpg</a>.&nbsp; For your image, it would be:</p><p><span class="postimg"><img src="http://i.imgur.com/ffCXlgS.jpg." alt="http://i.imgur.com/ffCXlgS.jpg." /></span></p><p>Your program looks pretty interesting.&nbsp; I&#039;m guessing it&#039;s a 2D airfoil analysis program using a panel method.&nbsp; I&#039;m trying to remember my aerodynamics classes, but it has been a while.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-02-13T15:01:13Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1288#p1288</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1287#p1287" />
			<content type="html"><![CDATA[<p>Jason, it doesn&#039;t display.<br />Also, may I suggest you place it in the forum under the new thrread I&#039;ve just created for GUI screenshots?<br />--- <br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2014-02-13T14:45:24Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1287#p1287</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1286#p1286" />
			<content type="html"><![CDATA[<p>Jeff, </p><p>If I&#039;m doing this correctly, this will show a screenshot showing the console window and the plot window.</p><p><span class="postimg"><img src="http://imgur.com/ffCXlgS" alt="DisplayImage bbcode XFoilScreens" /></span></p><p>*Edit*<br />Ok, I don&#039;t know how to do this correctly (evidently). Here&#039;s the link to its location on Imgur:<br /><a href="http://imgur.com/ffCXlgS">http://imgur.com/ffCXlgS</a></p><p>*Edit2*<br />Using Jeff&#039;s instructions in a following post:<br /><span class="postimg"><img src="http://imgur.com/ffCXlgS.jpg" alt="DisplayImage bbcode XFoilScreens" /></span></p>]]></content>
			<author>
				<name><![CDATA[jason_b1975]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3516</uri>
			</author>
			<updated>2014-02-13T14:43:40Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1286#p1286</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1283#p1283" />
			<content type="html"><![CDATA[<p>John,</p><p>You would need to host the image elsewhere and then provide a link.&nbsp; If you look at the <a href="http://forums.approximatrix.com/help.php?section=img">help entry on images</a>, you&#039;ll see that it is providing a complete URL to the image online.</p><p>Usually when I post images here, I first upload them to <a href="http://imgur.com">Imgur</a>, which is simple, fast, and uncluttered.&nbsp; You don&#039;t need an account or anything, so it makes posting an image easy.&nbsp; They&#039;ll provide a per-image link to manage it in case you wish to delete it later.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-02-13T14:10:32Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1283#p1283</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1282#p1282" />
			<content type="html"><![CDATA[<p>Jeff,</p><p>Can you offer any guidance on how do include an image file in a post to the forum?<br />I have tried this:</p><p>[img=Display image test]file:///D:JWasilewski/DEV/Fortran/InStruct121/InStructScreenshot.png[/img]</p><p>but it just displays the above a text.<br />--- <br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2014-02-13T13:43:05Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1282#p1282</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1281#p1281" />
			<content type="html"><![CDATA[<p>Jason,</p><p>That&#039;s great to hear!&nbsp; When you do get a chance, maybe you could provide a quick screenshot to show us the graphics portion.&nbsp; I know I&#039;d be interested in seeing it, and I think a good portion of users are interested in any sort of graphical programs written in Fortran.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-02-13T12:22:25Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1281#p1281</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1280#p1280" />
			<content type="html"><![CDATA[<p>Success! That did it!</p><p>So yes, I did compile libPlot using SF. Doing things as you suggested fixed everything as far as I can tell so far. I have to step away from the project before I&#039;ll get a chance to operate it and make completely sure it&#039;s working as intended, but this is a good sign so far.</p><p>Thanks,<br /> Jason</p>]]></content>
			<author>
				<name><![CDATA[jason_b1975]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3516</uri>
			</author>
			<updated>2014-02-12T22:49:04Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1280#p1280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1279#p1279" />
			<content type="html"><![CDATA[<p>Jason,</p><p>I think I&#039;m starting to understand what you&#039;re asking.&nbsp; Actually, the Windows GUI box does not cause any linking against Windows libraries to occur.&nbsp; You&#039;ll need to open the Project Options dialog in your executable project, switch to the Compiler Flags tab, and add the following:</p><p><em>-lgdi32</em></p><p>You might have to add some other flags, but we&#039;ll tackle those as compiler errors arise.&nbsp; Click Ok, and save your project.&nbsp; </p><p>Next, perform a Clean from the Build menu.&nbsp; Finally, click Build Now! in the Build menu.&nbsp; Your program will either compile or, more likely, complain about another linker error.</p><p>Out of curiosity, did you compile &quot;libPlot.lib&quot; using Simply Fortran?&nbsp; If the library was compiled for/by another compiler, it may not be compatible with Simply Fortran&#039;s compiler.&nbsp; However, if you&#039;ve gotten as far as seeing undefined references to BitBlt, I think everything is working okay.</p><p>Let me know what you get next based on these comments.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-02-12T22:23:41Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1279#p1279</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1278#p1278" />
			<content type="html"><![CDATA[<p>I&#039;m using version 2.10, build 1575</p><p>The program uses the console for all the input/output, so as I figured, I will continue with the Windows GUI box unchecked. That brings back my question about whether I need to link against windows libraries though. If I compile without the Windows GUI box checked, the first linker error is to BitBlt, which is in the gdi32.lib according to Dr Google finding data on MSDN. And should that link be done when creating the libPlot library, or is it better to link when building the final program?</p><p>Thanks,<br />Jason</p>]]></content>
			<author>
				<name><![CDATA[jason_b1975]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3516</uri>
			</author>
			<updated>2014-02-12T21:33:49Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1278#p1278</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1277#p1277" />
			<content type="html"><![CDATA[<p>Jason,</p><p>Before you continue any further, let&#039;s try to clear up what you&#039;re working with.&nbsp; </p><p>1. Which version of Simply Fortran are you currently using? </p><p>2. Does your program use the console for any input/output whatsoever?&nbsp; If it does, you <em>need</em> to leave Windows GUI <em>unchecked</em>.&nbsp; &nbsp;That box should be used only if you have absolutely no console input/output.</p><p>If your program is using a &quot;Read *,&quot; or anything like that, you&#039;ll need to ensure that Windows GUI is not checked.&nbsp; The long message you&#039;re seeing:</p><div class="quotebox"><blockquote><p>&quot;*stopped,reason=&quot;end-stepping-range&quot;,frame={addr...</p></blockquote></div><p>is due to a bug in Simply Fortran (didn&#039;t know about that one) where you&#039;re seeing the communications between Simply Fortran and the debugger.&nbsp; I&#039;ll have to look into further suppressing this output.</p><p>Let me know the answer to the above questions.&nbsp; I&#039;m interested in what&#039;s actually happening with your code.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-02-12T20:53:30Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1277#p1277</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1276#p1276" />
			<content type="html"><![CDATA[<p>Update: If I don&#039;t open a console before I try stepping over the first read statement, SF just hangs there. I think waiting for an input that it can&#039;t get because it isn&#039;t linked to a console. If I open a console after stepping over the first read statement, it crashes SF.</p>]]></content>
			<author>
				<name><![CDATA[jason_b1975]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3516</uri>
			</author>
			<updated>2014-02-12T20:08:59Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1276#p1276</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1275#p1275" />
			<content type="html"><![CDATA[<p>Ok, I&#039;ve done that and now I&#039;m noticing something new. Currently, I have it set to launch in an external console, but that doesn&#039;t seem to actually show the console if I start the debugger. My first read statements happen in a subroutine. If I try to step over that subroutine, SF crashes. If I step into the subroutine up to the first read statement, then step over the read statement, I get this message, but only if I open the SF console first (since a console isn&#039;t coming up on its own otherwise): <br />&quot;*stopped,reason=&quot;end-stepping-range&quot;,frame={addr=&quot;0x0040c113&quot;,func=&quot;askc&quot;,args=[{name=&quot;prompt&quot;,value=&quot;&lt;error reading variable: Cannot access memory at address 0x49b398&gt;&quot;},{name=&quot;comand&quot;,value=&quot;&lt;error reading variable: Cannot access memory at address 0x28ed49&gt;&quot;},{name=&quot;cargs&quot;,value=&quot;&lt;error reading variable: Cannot access memory at address 0x28ecc9&gt;&quot;},{name=&quot;_prompt&quot;,value=&quot;8&quot;},{name=&quot;_prompt@entry&quot;,value=&quot;8&quot;},{name=&quot;_comand&quot;,value=&quot;7&quot;},{name=&quot;_comand@entry&quot;,value=&quot;7&quot;},{name=&quot;_cargs&quot;,value=&quot;128&quot;},{name=&quot;_cargs@entry&quot;,value=&quot;128&quot;}],file=&quot;.\\src\\userio.f&quot;,fullname=&quot;P:\\Tools\\Xrotor\\src\\userio.f&quot;,line=&quot;132&quot;},thread-id=&quot;1&quot;,stopped-threads=&quot;all&quot;&quot;</p><p>I *think this is telling me the variable COMAND is not long enough for the data that&#039;s trying to get entered into it. If I remember right, Linux and Unix only do a carriage return or line feed at the end of a line, but Windows does a carriage return and line feed at the end of a line. Does this seem plausible? I&#039;m going to try some changes on that front.</p>]]></content>
			<author>
				<name><![CDATA[jason_b1975]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3516</uri>
			</author>
			<updated>2014-02-12T19:51:24Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1275#p1275</id>
		</entry>
</feed>
