<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>LeafLabs Garden &#187; Topic: The background cpp files</title>
		<link>http://forums.leaflabs.com/topic.php?id=1128</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:22:55 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1128" rel="self" type="application/rss+xml" />

		<item>
			<title>samtal on "The background cpp files"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1128#post-6980</link>
			<pubDate>Tue, 25 Oct 2011 14:02:58 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">6980@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;THX
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "The background cpp files"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1128#post-6978</link>
			<pubDate>Tue, 25 Oct 2011 13:27:16 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6978@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
1. How can I download a compiled binary onto Maple? (I assume it is FileName_pde.cpp.bin. I need to send binaries for remote software updates without disclosing the sources).&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;You will need to send the autoreset sequence to the Maple, then use dfu-util to perform the upload.&#60;/p&#62;
&#60;p&#62;The bootloader docs specify the autoreset sequence:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://leaflabs.com/docs/bootloader.html#maple-rev3-rev5-dfu&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/bootloader.html#maple-rev3-rev5-dfu&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This thread tells you how to use dfu-util with Maple:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=970&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=970&#60;/a&#62;&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
2. Can I compile IDE while the cpp file is open? (Can use a text editor like TextPad that has both C/C++ format display and automatic file refresh).&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Normally, the build directory is temporary.  The IDE should autogenerate new ones each time.  You can use the IDE preferences to specify a special build directory to use, however.&#60;/p&#62;
&#60;p&#62;Regarding a separate editor, the IDE preferences let you use an external editor.  This will make it impossible to edit the file from within the IDE, but will refresh it before each compile.  That way, you can edit the files in another editor, but still use the IDE to compile and upload.&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
3. Can I change the target folder for the files to a dedicated folder (rather than the current C:\DOCUME~1\SAMTAL\LOCALS~1\Temp\build4816439826520861001.tmp\)&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Yes; see above.&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
4. Assuming I wish to edit and compile an IDE programmed file with a cpp compiler, which compiler should it be? (I am aware of the fact this will not enable going back to the IDE, and I assume you don't like this question, but I am a curious personality...).&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;See the Unix toolchain quickstart; it explains everything.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://leaflabs.com/docs/unix-toolchain.html&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/unix-toolchain.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This can be made to work Windows, but it takes a little more effort.  I'm not done writing the documentation yet, but preliminary Windows instructions are available on GitHub:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://github.com/leaflabs/leaflabs-docs/blob/unix-toolchain-overhaul/source/unix-toolchain.rst&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/leaflabs-docs/blob/unix-toolchain-overhaul/source/unix-toolchain.rst&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samtal on "The background cpp files"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1128#post-6976</link>
			<pubDate>Tue, 25 Oct 2011 12:49:45 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">6976@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks mbolivar,&#60;br /&#62;
I found the files.&#60;/p&#62;
&#60;p&#62;Additional question: &#60;/p&#62;
&#60;p&#62;1. How can I download a compiled binary onto Maple? (I assume it is FileName_pde.cpp.bin.  I need to send binaries for remote software updates without disclosing the sources).&#60;/p&#62;
&#60;p&#62;2. Can I compile IDE while the cpp file is open? (Can use a text editor like TextPad that has both C/C++ format display and automatic file refresh).&#60;/p&#62;
&#60;p&#62;3. Can I change the target folder for the files to a dedicated folder (rather than the current C:\DOCUME~1\SAMTAL\LOCALS~1\Temp\build4816439826520861001.tmp\) &#60;/p&#62;
&#60;p&#62;4. Assuming I wish to edit and compile an IDE programmed file with a cpp compiler, which compiler should it be?  (I am aware of the fact this will not enable going back to the IDE, and I assume you don't like this question, but I am a curious personality...). &#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
samtal
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "The background cpp files"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1128#post-6973</link>
			<pubDate>Tue, 25 Oct 2011 10:26:39 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6973@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Normally, the IDE should jump to the line with the error.  That doesn't always work, however, due to bugs. That's why we give you the full compiler output, just in case.&#60;/p&#62;
&#60;p&#62;In the IDE's error output, there's a message that tells you what folder &#34;BUILD_DIR&#34; is. That's where all of the actual generated C++ files are stored (they're ordinary files, not &#34;RAM files&#34;).  Navigating to that folder will let you view the files themselves.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samtal on "The background cpp files"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1128#post-6947</link>
			<pubDate>Sat, 22 Oct 2011 13:39:13 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">6947@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
When compiling the IDE, I noticed there is a C++ (.cpp) file for each of my IDE functions.&#60;br /&#62;
I could not find such file on my disk, and I therefore assume those are ram files.&#60;br /&#62;
All error messages refer to line numbers in those files, while the IDE has no line numbers. &#60;/p&#62;
&#60;p&#62;Questions:&#60;br /&#62;
1. Is there a way to access that file(s) for the error line numbers?&#60;br /&#62;
2. Can the files be edited without a C++ compiler?&#60;br /&#62;
Thanks&#60;br /&#62;
samtal
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
