<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — missing stdio.h in macOS]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=765&amp;type=atom" />
	<updated>2020-07-20T11:29:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=765</id>
		<entry>
			<title type="html"><![CDATA[Re: missing stdio.h in macOS]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3541#p3541" />
			<content type="html"><![CDATA[<p>On macOS, we only provide the compiler for C and C++.&nbsp; Both actually use the macOS headers and system libraries where possible.&nbsp; &nbsp;</p><p>My guess is, for whatever reason, is that the &quot;Command-Line Tools&quot; need to be installed or reinstalled.&nbsp; This procedure sounds worse than it actually is.&nbsp; In macOS, open the Terminal app (it should be in the Applications folder under Utilities).&nbsp; At the prompt, type:</p><div class="codebox"><pre><code>xcode-select --install</code></pre></div><p>That should cause a window to popup where you can simply select &quot;Install.&quot;&nbsp; That should fix the problem, though you might need to restart Simply Fortran first.</p><p>Let me know if this suggestion works!</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2020-07-20T11:29:34Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3541#p3541</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[missing stdio.h in macOS]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3540#p3540" />
			<content type="html"><![CDATA[<p>Hi there,</p><p>I am trying to compile c code that I was able to compile easily with the windows version and for some reason I can not get it compile it in macOS because the compiler can not find stdio.h. I have looked within the program for this header and can not find it.</p><p>I have tried to compile a simple hello world with the same result:</p><p>#include &lt;stdio.h&gt;</p><p>void main()<br />{<br />&nbsp; &nbsp; printf(&quot;\nHello World\n&quot;);<br />}</p><p>======<br />Compiling hello_world.c<br />- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br />hello_world.c:1:10: fatal error: stdio.h: No such file or directory<br />&nbsp; &nbsp; 1 | #include &lt;stdio.h&gt;<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~<br />compilation terminated.<br />Error: Last command making (build/hello_world.o) returned a bad status<br />Error: Make execution terminated</p><p>What am I doing wrong?<br />Thanks for your help.</p>]]></content>
			<author>
				<name><![CDATA[arturo]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3927</uri>
			</author>
			<updated>2020-07-20T00:54:08Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3540#p3540</id>
		</entry>
</feed>
