<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rusty Razor Blade &#187; c++</title>
	<atom:link href="http://www.rustyrazorblade.com/category/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rustyrazorblade.com</link>
	<description>Tech Thoughts, Mostly on LAMP - by Jon Haddad</description>
	<lastBuildDate>Fri, 03 Feb 2012 20:03:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>C# on the Mac with Eclipse</title>
		<link>http://www.rustyrazorblade.com/2009/04/c-on-the-mac-with-eclipse/</link>
		<comments>http://www.rustyrazorblade.com/2009/04/c-on-the-mac-with-eclipse/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 02:37:55 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[c++]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=601</guid>
		<description><![CDATA[<p>It looks like developing using c# and eclipse on the Mac is pretty easy, at least on first glance. <a href="http://vanirsystems.com/danielsblog/2008/01/02/mac-os-x-mono-eclipse-and-virtuoso/">Here&#8217;s a good guide to get started</a>.</p> <p>It only took about 2 minutes to go from &#8220;I think I&#8217;ll give this a shot&#8221; to &#8220;sweet it compiled.&#8221;</p>]]></description>
			<content:encoded><![CDATA[<p>It looks like developing using c# and eclipse on the Mac is pretty easy, at least on first glance.  <a href="http://vanirsystems.com/danielsblog/2008/01/02/mac-os-x-mono-eclipse-and-virtuoso/">Here&#8217;s a good guide to get started</a>.</p>
<p>It only took about 2 minutes to go from &#8220;I think I&#8217;ll give this a shot&#8221; to &#8220;sweet it compiled.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rustyrazorblade.com/2009/04/c-on-the-mac-with-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turning to the Dark Side for a bit&#8230;.</title>
		<link>http://www.rustyrazorblade.com/2008/09/turning-to-the-dark-side-for-a-bit/</link>
		<comments>http://www.rustyrazorblade.com/2008/09/turning-to-the-dark-side-for-a-bit/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 23:47:13 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[c++]]></category>

		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=235</guid>
		<description><![CDATA[<p>For better or worse, I&#8217;ll be doing c# development for a while. I&#8217;ve never been particularly fond of Windows, so we&#8217;ll see how things go.</p> <p>I can say that I did manage to blue screen my box on day #2. </p> <p>If anyone has any good c# tutorials or books they&#8217;d recommend, I&#8217;d appreciate it.</p>]]></description>
			<content:encoded><![CDATA[<p>For better or worse, I&#8217;ll be doing c# development for a while.  I&#8217;ve never been particularly fond of Windows, so we&#8217;ll see how things go.</p>
<p>I can say that I did manage to blue screen my box on day #2.  </p>
<p>If anyone has any good c# tutorials or books they&#8217;d recommend, I&#8217;d appreciate it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rustyrazorblade.com/2008/09/turning-to-the-dark-side-for-a-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>External Libraries in XCode</title>
		<link>http://www.rustyrazorblade.com/2008/02/external-libraries-in-xcode/</link>
		<comments>http://www.rustyrazorblade.com/2008/02/external-libraries-in-xcode/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 00:44:48 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[c++]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.rustyrazorblade.com/2008/02/06/external-libraries-in-xcode/</guid>
		<description><![CDATA[<p>I need to compile something and use the MySQL C++ library. I have mysql and mysql++ already compiled, I won&#8217;t go over how to do that now.</p> <p>I added the following code to the top of my source:</p> <p><br /> #include &#60;mysql++.h&#62;<br /> </p> <p>I got an error </p> <p>/Users/jhaddad/dev/search_engine/main.cpp:4:21: error: mysql++.h: No such file [...]]]></description>
			<content:encoded><![CDATA[<p>I need to compile something and use the MySQL C++ library.  I have mysql and mysql++ already compiled, I won&#8217;t go over how to do that now.</p>
<p>I added the following code to the top of my source:</p>
<p><code><br />
#include &lt;mysql++.h&gt;<br />
</code></p>
<p>I got an error </p>
<blockquote><p>/Users/jhaddad/dev/search_engine/main.cpp:4:21: error: mysql++.h: No such file or directory
</p></blockquote>
<p>Not cool.  </p>
<p>How to fix:</p>
<p>In XCode, open up the project settings (under the project menu).  Click the build tab.  Go down to search paths, and you can change your Header search paths to the correct locations where you installed whatever you&#8217;re looking for.  In this case, mine was /usr/local/includes and /usr/local/mysql/</p>
<p>Next time you try to recompile, you&#8217;ll get a different error, this time it should be during Linking.  Might look something like the below.</p>
<blockquote><p>  &#8220;mysqlpp::Query::store(mysqlpp::SQLQueryParms&#038;)&#8221;, referenced from:
</p></blockquote>
<p>Right click on your project in the left hand column (file listing), click &#8220;Add existing files&#8221;, then go to the prebuilt library (for me it was in /usr/local/lib), and add the file.  You don&#8217;t have to copy it into the directory, you can just add it and it should work.  Recompile and enjoy.</p>
<p>Edit: /usr/local/lib won&#8217;t be initially visible.  Type command-shift-g and it&#8217;ll bring up a text field you can type a path into to go directly to a directory.<br />
<img src="http://www.rustyrazorblade.com/wp-content/uploads/2008/02/xcode_header.png" alt="xcode_header" title="xcode_header" width="600" height="477" class="alignnone size-full wp-image-836" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rustyrazorblade.com/2008/02/external-libraries-in-xcode/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

