<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Suspected graphics linking problem in mixed Fortran/C program]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=315</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=315&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Suspected graphics linking problem in mixed Fortran/C program.]]></description>
		<lastBuildDate>Fri, 14 Feb 2014 17:17:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1294#p1294</link>
			<description><![CDATA[<p>John, </p><p>I put a screenshot of it on your topic.</p><p>Thanks for the help!</p>]]></description>
			<author><![CDATA[null@example.com (jason_b1975)]]></author>
			<pubDate>Fri, 14 Feb 2014 17:17:44 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1294#p1294</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1291#p1291</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Thu, 13 Feb 2014 16:15:11 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1291#p1291</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1290#p1290</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jason_b1975)]]></author>
			<pubDate>Thu, 13 Feb 2014 15:58:19 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1290#p1290</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1288#p1288</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 13 Feb 2014 15:01:13 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1288#p1288</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1287#p1287</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Thu, 13 Feb 2014 14:45:24 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1287#p1287</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1286#p1286</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jason_b1975)]]></author>
			<pubDate>Thu, 13 Feb 2014 14:43:40 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1286#p1286</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1283#p1283</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 13 Feb 2014 14:10:32 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1283#p1283</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1282#p1282</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Thu, 13 Feb 2014 13:43:05 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1282#p1282</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1281#p1281</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 13 Feb 2014 12:22:25 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1281#p1281</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1280#p1280</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jason_b1975)]]></author>
			<pubDate>Wed, 12 Feb 2014 22:49:04 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1280#p1280</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1279#p1279</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 12 Feb 2014 22:23:41 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1279#p1279</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1278#p1278</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jason_b1975)]]></author>
			<pubDate>Wed, 12 Feb 2014 21:33:49 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1278#p1278</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1277#p1277</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 12 Feb 2014 20:53:30 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1277#p1277</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1276#p1276</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jason_b1975)]]></author>
			<pubDate>Wed, 12 Feb 2014 20:08:59 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1276#p1276</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suspected graphics linking problem in mixed Fortran/C program]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1275#p1275</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jason_b1975)]]></author>
			<pubDate>Wed, 12 Feb 2014 19:51:24 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1275#p1275</guid>
		</item>
	</channel>
</rss>
