<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — "exit" not legit keyword?]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=509&amp;type=atom" />
	<updated>2015-11-27T13:44:58Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=509</id>
		<entry>
			<title type="html"><![CDATA[Re: "exit" not legit keyword?]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2287#p2287" />
			<content type="html"><![CDATA[<p>I believe <em>exit</em> is only a C keyword.&nbsp; You probably just need to include <em>cstdlib</em> to bring <em>exit</em> into scope.&nbsp; I would suggest looking at the example here:</p><p><a href="http://en.cppreference.com/w/cpp/utility/program/exit">http://en.cppreference.com/w/cpp/utility/program/exit</a></p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2015-11-27T13:44:58Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2287#p2287</id>
		</entry>
		<entry>
			<title type="html"><![CDATA["exit" not legit keyword?]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2286#p2286" />
			<content type="html"><![CDATA[<p>Get this error, In function &#039;void NR::nrerror(std::__cxx11::string)&#039;:, nrutil_nr.h:56:9: error: &#039;exit&#039; was not declared in this scope</p><p>I am trying to compile the annealing example in legacy cpp code.&nbsp; </p><p>The code fragment giving me grief appears to be:<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; cerr &lt;&lt; &quot;Numerical Recipes run-time error...&quot; &lt;&lt; endl;<br />&nbsp; &nbsp; &nbsp; &nbsp; cerr &lt;&lt; error_text &lt;&lt; endl;<br />&nbsp; &nbsp; &nbsp; &nbsp; cerr &lt;&lt; &quot;...now exiting to system...&quot; &lt;&lt; endl;<br />&nbsp; &nbsp; &nbsp; &nbsp; exit(1);<br />&nbsp; &nbsp; }<br />Compiler does not like the exit keyword.</p><p>Thanks for any help<br />kevington</p>]]></content>
			<author>
				<name><![CDATA[kevington]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3651</uri>
			</author>
			<updated>2015-11-27T08:23:19Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2286#p2286</id>
		</entry>
</feed>
