<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Writing C++ Programs on Mac OS X</title>
	<atom:link href="http://meandmark.com/blog/2007/01/writing-c-programs-on-mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://meandmark.com/blog/2007/01/writing-c-programs-on-mac-os-x/</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 20:06:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: 1</title>
		<link>http://meandmark.com/blog/2007/01/writing-c-programs-on-mac-os-x/comment-page-1/#comment-132</link>
		<dc:creator>1</dc:creator>
		<pubDate>Sat, 05 Dec 2009 02:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://meandmark.com/blog/?p=36#comment-132</guid>
		<description>Any help greatly appreciated - I have just built the OpenCV framework (got headers and dynamic libraries) for doing pattern recogntion - but cant get it to work with Xcode (3.2). Get the following errors:&lt;br /&gt;&lt;br /&gt;-----------------------------------&lt;br /&gt;Undefined symbols:&lt;br /&gt;  &quot;_cvLoadImage&quot;, referenced from:&lt;br /&gt;      _main in main.o&lt;br /&gt;  &quot;_cvNamedWindow&quot;, referenced from:&lt;br /&gt;      _main in main.o&lt;br /&gt;  &quot;_cvReleaseImage&quot;, referenced from:&lt;br /&gt;      _main in main.o&lt;br /&gt;  &quot;_cvShowImage&quot;, referenced from:&lt;br /&gt;      _main in main.o&lt;br /&gt;  &quot;_cvDestroyWindow&quot;, referenced from:&lt;br /&gt;      _main in main.o&lt;br /&gt;  &quot;_cvWaitKey&quot;, referenced from:&lt;br /&gt;      _main in main.o&lt;br /&gt;ld: symbol(s) not found&lt;br /&gt;collect2: ld returned 1 exit status&lt;br /&gt;-----------------------------------&lt;br /&gt;&lt;br /&gt;Does anyone know what these mean? 1. Max.</description>
		<content:encoded><![CDATA[<p>Any help greatly appreciated &#8211; I have just built the OpenCV framework (got headers and dynamic libraries) for doing pattern recogntion &#8211; but cant get it to work with Xcode (3.2). Get the following errors:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />Undefined symbols:<br />  &quot;_cvLoadImage&quot;, referenced from:<br />      _main in main.o<br />  &quot;_cvNamedWindow&quot;, referenced from:<br />      _main in main.o<br />  &quot;_cvReleaseImage&quot;, referenced from:<br />      _main in main.o<br />  &quot;_cvShowImage&quot;, referenced from:<br />      _main in main.o<br />  &quot;_cvDestroyWindow&quot;, referenced from:<br />      _main in main.o<br />  &quot;_cvWaitKey&quot;, referenced from:<br />      _main in main.o<br />ld: symbol(s) not found<br />collect2: ld returned 1 exit status<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Does anyone know what these mean? 1. Max.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Lopez</title>
		<link>http://meandmark.com/blog/2007/01/writing-c-programs-on-mac-os-x/comment-page-1/#comment-128</link>
		<dc:creator>Eddie Lopez</dc:creator>
		<pubDate>Wed, 11 Nov 2009 02:38:53 +0000</pubDate>
		<guid isPermaLink="false">http://meandmark.com/blog/?p=36#comment-128</guid>
		<description>Thanks for posting this blog!!  It was a great help.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this blog!!  It was a great help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: poon</title>
		<link>http://meandmark.com/blog/2007/01/writing-c-programs-on-mac-os-x/comment-page-1/#comment-121</link>
		<dc:creator>poon</dc:creator>
		<pubDate>Thu, 30 Jul 2009 11:50:36 +0000</pubDate>
		<guid isPermaLink="false">http://meandmark.com/blog/?p=36#comment-121</guid>
		<description>Hihi Mark,&lt;br /&gt;&lt;br /&gt;Thanks, that solved it!&lt;br /&gt;&lt;br /&gt;^w^</description>
		<content:encoded><![CDATA[<p>Hihi Mark,</p>
<p>Thanks, that solved it!</p>
<p>^w^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://meandmark.com/blog/2007/01/writing-c-programs-on-mac-os-x/comment-page-1/#comment-120</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 28 Jul 2009 19:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://meandmark.com/blog/?p=36#comment-120</guid>
		<description>Poon,&lt;br /&gt;&lt;br /&gt;Read the tutorial on functions at the following URL:&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.cplusplus.com/doc/tutorial/functions&quot; rel=&quot;nofollow&quot;&gt;http://www.cplusplus.com/doc/tutorial/functions&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you read the tutorial, you&#039;ll see that putting the code for your Convert() function before main() should eliminate the compiler error.</description>
		<content:encoded><![CDATA[<p>Poon,</p>
<p>Read the tutorial on functions at the following URL:</p>
<p><a href="http://www.cplusplus.com/doc/tutorial/functions" rel="nofollow">http://www.cplusplus.com/doc/tutorial/functions</a></p>
<p>If you read the tutorial, you&#39;ll see that putting the code for your Convert() function before main() should eliminate the compiler error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: poon</title>
		<link>http://meandmark.com/blog/2007/01/writing-c-programs-on-mac-os-x/comment-page-1/#comment-119</link>
		<dc:creator>poon</dc:creator>
		<pubDate>Tue, 28 Jul 2009 17:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://meandmark.com/blog/?p=36#comment-119</guid>
		<description>Hihi, thanks for the info ^^.&lt;br /&gt;&lt;br /&gt;I&#039;ve been using SAMS Teach Yourself C++ Fifth Edition by Jesse Liberty and Bradley Jones to learn C++, but I&#039;m having some problems with function declarations and definitions on Xcode. I follow the code exactly, but I get errors. I tried multiple examples from the book, and all of the programs regarding functions produce errors. Here&#039;s an example:&lt;br /&gt;&lt;br /&gt;// Listing 5.2&lt;br /&gt;// Demo of the Use of Local Variables and Parameters&lt;br /&gt;&lt;br /&gt;#include iostream&lt;br /&gt;&lt;br /&gt;float Convert(float)&lt;br /&gt;int main()                          // error: expected initializer before &quot;int&quot;&lt;br /&gt;{&lt;br /&gt; using namespace std;&lt;br /&gt; &lt;br /&gt; float TempFer;&lt;br /&gt; float TempCel;&lt;br /&gt; &lt;br /&gt; cout &lt;&lt; &quot;\nPlease enter the temperature in Fahrenheit: &quot;;&lt;br /&gt; cin &gt;&gt; TempFer;&lt;br /&gt; TempCel = Convert(TempFer);&lt;br /&gt; cout &lt;&lt; &quot;\nHere is the temperature in Celsius: &quot;;&lt;br /&gt; cout &lt;&lt; TempCel &lt;&lt; endl;&lt;br /&gt; return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;float Convert(TempFer)              // error: &#039;TempFer&#039; was not declared in this scope&lt;br /&gt;{                                                      // error: expected &#039;,&#039; or &#039;;&#039; before &#039;{&#039; token&lt;br /&gt; float TempCel;&lt;br /&gt; TempCel = ((TempFer - 32) * 5) / 9;&lt;br /&gt; return TempCel;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;For the first error, when I take out &quot;float Convert(float)&quot;, that error disappears. So does &quot;#include iostream&quot; have to immediately precede &quot;int main()&quot;?&lt;br /&gt;&lt;br /&gt;Thank you very much!&lt;br /&gt;&lt;br /&gt;^w^&lt;br /&gt;&lt;br /&gt;PS&gt; My tags are taken out because HTML cannot accept it.</description>
		<content:encoded><![CDATA[<p>Hihi, thanks for the info ^^.</p>
<p>I&#39;ve been using SAMS Teach Yourself C++ Fifth Edition by Jesse Liberty and Bradley Jones to learn C++, but I&#39;m having some problems with function declarations and definitions on Xcode. I follow the code exactly, but I get errors. I tried multiple examples from the book, and all of the programs regarding functions produce errors. Here&#39;s an example:</p>
<p>// Listing 5.2<br />// Demo of the Use of Local Variables and Parameters</p>
<p>#include iostream</p>
<p>float Convert(float)<br />int main()                          // error: expected initializer before &quot;int&quot;<br />{<br /> using namespace std;</p>
<p> float TempFer;<br /> float TempCel;</p>
<p> cout &lt;&lt; &quot;\nPlease enter the temperature in Fahrenheit: &quot;;<br /> cin &gt;&gt; TempFer;<br /> TempCel = Convert(TempFer);<br /> cout &lt;&lt; &quot;\nHere is the temperature in Celsius: &quot;;<br /> cout &lt;&lt; TempCel &lt;&lt; endl;<br /> return 0;<br />}</p>
<p>float Convert(TempFer)              // error: &#39;TempFer&#39; was not declared in this scope<br />{                                                      // error: expected &#39;,&#39; or &#39;;&#39; before &#39;{&#39; token<br /> float TempCel;<br /> TempCel = ((TempFer &#8211; 32) * 5) / 9;<br /> return TempCel;<br />}</p>
<p>For the first error, when I take out &quot;float Convert(float)&quot;, that error disappears. So does &quot;#include iostream&quot; have to immediately precede &quot;int main()&quot;?</p>
<p>Thank you very much!</p>
<p>^w^</p>
<p>PS&gt; My tags are taken out because HTML cannot accept it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://meandmark.com/blog/2007/01/writing-c-programs-on-mac-os-x/comment-page-1/#comment-118</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 21 Jul 2009 21:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://meandmark.com/blog/?p=36#comment-118</guid>
		<description>Alan,&lt;br /&gt;&lt;br /&gt;If you&#039;re using Xcode 3, choose Run &gt; Console to  enter input and see the output from the program.&lt;br /&gt;&lt;br /&gt;X11 is the windowing system Unix operating systems use. Mac OS X has an X11 application that lets you run X11 apps on your Mac. X11 should be in your Applications folder under Utilities. If it&#039;s not there, you&#039;ll have to install it from your Mac OS X DVD.&lt;br /&gt;&lt;br /&gt;You would use OpenGL to write graphics programs on a Mac. You would use an image editing program like Photoshop or GIMP to create the graphic images.</description>
		<content:encoded><![CDATA[<p>Alan,</p>
<p>If you&#39;re using Xcode 3, choose Run &gt; Console to  enter input and see the output from the program.</p>
<p>X11 is the windowing system Unix operating systems use. Mac OS X has an X11 application that lets you run X11 apps on your Mac. X11 should be in your Applications folder under Utilities. If it&#39;s not there, you&#39;ll have to install it from your Mac OS X DVD.</p>
<p>You would use OpenGL to write graphics programs on a Mac. You would use an image editing program like Photoshop or GIMP to create the graphic images.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://meandmark.com/blog/2007/01/writing-c-programs-on-mac-os-x/comment-page-1/#comment-117</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Tue, 21 Jul 2009 21:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://meandmark.com/blog/?p=36#comment-117</guid>
		<description>I am also a programming newbie. I managed, using a source or two, to piece together a program that should prompt you for X, then add that to 2, and it retrieves your result.&lt;br /&gt;&lt;br /&gt;Only problem(s)? &lt;br /&gt;&lt;br /&gt;When I try to go to the &quot;run&quot; or &quot;go&quot; section of Xcode (or try to compile for that matter), it opens a window that says &quot;Stop Executable&quot;. The program still works if I open it through terminal (which I believe is the standard command line interface for mac. &lt;br /&gt;&lt;br /&gt;For curiosity sake, what is X11 and how do you create graphics for c++ programs on a mac? (My cousin created a small single player game with graphics).&lt;br /&gt;&lt;br /&gt;Thank you for your time.</description>
		<content:encoded><![CDATA[<p>I am also a programming newbie. I managed, using a source or two, to piece together a program that should prompt you for X, then add that to 2, and it retrieves your result.</p>
<p>Only problem(s)? </p>
<p>When I try to go to the &quot;run&quot; or &quot;go&quot; section of Xcode (or try to compile for that matter), it opens a window that says &quot;Stop Executable&quot;. The program still works if I open it through terminal (which I believe is the standard command line interface for mac. </p>
<p>For curiosity sake, what is X11 and how do you create graphics for c++ programs on a mac? (My cousin created a small single player game with graphics).</p>
<p>Thank you for your time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin Solanki</title>
		<link>http://meandmark.com/blog/2007/01/writing-c-programs-on-mac-os-x/comment-page-1/#comment-114</link>
		<dc:creator>Robin Solanki</dc:creator>
		<pubDate>Tue, 23 Jun 2009 20:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://meandmark.com/blog/?p=36#comment-114</guid>
		<description>Thanks I really needed this.</description>
		<content:encoded><![CDATA[<p>Thanks I really needed this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://meandmark.com/blog/2007/01/writing-c-programs-on-mac-os-x/comment-page-1/#comment-107</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 07 Apr 2009 19:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://meandmark.com/blog/?p=36#comment-107</guid>
		<description>Gabriel,&lt;br/&gt;&lt;br/&gt;Yes, you can use C++ for the non-GUI portions of your program and use Tkinter or Cocoa for the GUI.&lt;br/&gt;&lt;br/&gt;The decision of which GUI framework to use depends on the program and who is going to use the program. If your program is intended for the mass market of general Mac users, going with Cocoa would be a good choice. You can write Cocoa applications with Python using PyObjC. Xcode 3 has project templates for Cocoa Python programs. If the program has a more specialized audience, you would be better off sticking with Tkinter.&lt;br/&gt;&lt;br/&gt;I&#039;m not familiar with Tkinter so I don&#039;t know how easy it is to integrate with Xcode. I know Mac OS X ships with the Python, Tcl, and Tk frameworks. If there&#039;s a Tkinter framework available for Mac OS X, using Xcode will be easy. All you would have to do is add the framework. If there isn&#039;t a framework available, more work would be required.&lt;br/&gt;&lt;br/&gt;If you need a more detailed answer, send me an email. There&#039;s a link to my website in the sidebar on the right side of this blog.</description>
		<content:encoded><![CDATA[<p>Gabriel,</p>
<p>Yes, you can use C++ for the non-GUI portions of your program and use Tkinter or Cocoa for the GUI.</p>
<p>The decision of which GUI framework to use depends on the program and who is going to use the program. If your program is intended for the mass market of general Mac users, going with Cocoa would be a good choice. You can write Cocoa applications with Python using PyObjC. Xcode 3 has project templates for Cocoa Python programs. If the program has a more specialized audience, you would be better off sticking with Tkinter.</p>
<p>I&#8217;m not familiar with Tkinter so I don&#8217;t know how easy it is to integrate with Xcode. I know Mac OS X ships with the Python, Tcl, and Tk frameworks. If there&#8217;s a Tkinter framework available for Mac OS X, using Xcode will be easy. All you would have to do is add the framework. If there isn&#8217;t a framework available, more work would be required.</p>
<p>If you need a more detailed answer, send me an email. There&#8217;s a link to my website in the sidebar on the right side of this blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://meandmark.com/blog/2007/01/writing-c-programs-on-mac-os-x/comment-page-1/#comment-106</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 07 Apr 2009 11:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://meandmark.com/blog/?p=36#comment-106</guid>
		<description>Hi, Mark. Great page. Great links. I am completely new to XCode but I managed to get a little C++ project going in no time. I have a question, though. I am rebuilding from scratch a more complex program which I had running in python, with a GUI built with Tkinter, a python module using Tcl/Tk. Python turned out to be too slow for my needs, so I am migrating to C++. &lt;br/&gt;Now, the question: would I be able to use C++ for the engine bit of the program and python&#039;s Tkinter for the GUI, and combine everything into Xcode? I mean, would my C++ core talk to the python interface through Xcode&#039;s framework? Or should I rather drop python&#039;s Tkinter and use Cocoa istead? ( I know Tkinter, I am a complete novice in Objective C) &lt;br/&gt;My initial plan, before I got my new Mac Book, was to have C++ core talk to a python interface via sockets ( or files on the hdd). Would the XCode make my life easier? &lt;br/&gt;&lt;br/&gt;Thanks again, &lt;br/&gt;&lt;br/&gt;Gabriel</description>
		<content:encoded><![CDATA[<p>Hi, Mark. Great page. Great links. I am completely new to XCode but I managed to get a little C++ project going in no time. I have a question, though. I am rebuilding from scratch a more complex program which I had running in python, with a GUI built with Tkinter, a python module using Tcl/Tk. Python turned out to be too slow for my needs, so I am migrating to C++. <br />Now, the question: would I be able to use C++ for the engine bit of the program and python&#8217;s Tkinter for the GUI, and combine everything into Xcode? I mean, would my C++ core talk to the python interface through Xcode&#8217;s framework? Or should I rather drop python&#8217;s Tkinter and use Cocoa istead? ( I know Tkinter, I am a complete novice in Objective C) <br />My initial plan, before I got my new Mac Book, was to have C++ core talk to a python interface via sockets ( or files on the hdd). Would the XCode make my life easier? </p>
<p>Thanks again, </p>
<p>Gabriel</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/szymczyk/public_html/blog/wp-includes/feed-rss2-comments.php:10) in <b>/home/szymczyk/public_html/blog/wp-includes/pluggable.php</b> on line <b>897</b><br />

