<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://msl-libraries.org/index.php?action=history&amp;feed=atom&amp;title=Tutorial%3AGetting_started%3A_Compiling_your_own_programs_in_MSL</id>
	<title>Tutorial:Getting started: Compiling your own programs in MSL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://msl-libraries.org/index.php?action=history&amp;feed=atom&amp;title=Tutorial%3AGetting_started%3A_Compiling_your_own_programs_in_MSL"/>
	<link rel="alternate" type="text/html" href="http://msl-libraries.org/index.php?title=Tutorial:Getting_started:_Compiling_your_own_programs_in_MSL&amp;action=history"/>
	<updated>2026-04-09T07:50:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.6</generator>
	<entry>
		<id>http://msl-libraries.org/index.php?title=Tutorial:Getting_started:_Compiling_your_own_programs_in_MSL&amp;diff=649&amp;oldid=prev</id>
		<title>Dwkulp at 14:34, 6 April 2010</title>
		<link rel="alternate" type="text/html" href="http://msl-libraries.org/index.php?title=Tutorial:Getting_started:_Compiling_your_own_programs_in_MSL&amp;diff=649&amp;oldid=prev"/>
		<updated>2010-04-06T14:34:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 14:34, 6 April 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l44&quot; &gt;Line 44:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 44:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MYSOURCE  =  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MYSOURCE  =  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MYPROGS   = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;halloMSL&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MYPROGS   = &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;helloMSL&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MYHEADERS =  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MYHEADERS =  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dwkulp</name></author>
		
	</entry>
	<entry>
		<id>http://msl-libraries.org/index.php?title=Tutorial:Getting_started:_Compiling_your_own_programs_in_MSL&amp;diff=577&amp;oldid=prev</id>
		<title>Senes at 01:08, 17 March 2010</title>
		<link rel="alternate" type="text/html" href="http://msl-libraries.org/index.php?title=Tutorial:Getting_started:_Compiling_your_own_programs_in_MSL&amp;diff=577&amp;oldid=prev"/>
		<updated>2010-03-17T01:08:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 01:08, 17 March 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* In order to be compiled by ''make'', programs need to be in a specific location and be added to the Makefile.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* In order to be compiled by ''make'', programs need to be in a specific location and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;to &lt;/ins&gt;be added to the Makefile.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* For your own programs, the special location is the ''myProgs'' subdirectory.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* For your own programs, the special location is the ''myProgs'' subdirectory&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.  Save your code there&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Instead of editing the main Makefile, you edit the special ''myProgs.mk'' make file in the ''myProgs'' subdirectory.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Instead of editing the main Makefile, you &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;should &lt;/ins&gt;edit the special ''myProgs.mk'' make file in the ''myProgs'' subdirectory&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.  If this file exists, it is always sourced by the main Makefike&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* First you need to copy (or move) the ''myProgs/myProgs.mk.RENAME_ME'' to ''myProgs/myProgs.mk'' (this is done so that the distribute file does not conflict with your own customized version.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* First you need to copy (or move) the ''myProgs/myProgs.mk.RENAME_ME'' to ''myProgs/myProgs.mk'' (this is done so that the distribute file does not conflict with your own customized version.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Senes</name></author>
		
	</entry>
	<entry>
		<id>http://msl-libraries.org/index.php?title=Tutorial:Getting_started:_Compiling_your_own_programs_in_MSL&amp;diff=576&amp;oldid=prev</id>
		<title>Senes: Created page with '* In order to be compiled by ''make'', programs need to be in a specific location and be added to the Makefile.  * For your own programs, the special location is the ''myProgs'' …'</title>
		<link rel="alternate" type="text/html" href="http://msl-libraries.org/index.php?title=Tutorial:Getting_started:_Compiling_your_own_programs_in_MSL&amp;diff=576&amp;oldid=prev"/>
		<updated>2010-03-17T01:06:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;* In order to be compiled by &amp;#039;&amp;#039;make&amp;#039;&amp;#039;, programs need to be in a specific location and be added to the Makefile.  * For your own programs, the special location is the &amp;#039;&amp;#039;myProgs&amp;#039;&amp;#039; …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* In order to be compiled by ''make'', programs need to be in a specific location and be added to the Makefile.&lt;br /&gt;
&lt;br /&gt;
* For your own programs, the special location is the ''myProgs'' subdirectory.&lt;br /&gt;
&lt;br /&gt;
* Instead of editing the main Makefile, you edit the special ''myProgs.mk'' make file in the ''myProgs'' subdirectory.&lt;br /&gt;
&lt;br /&gt;
* First you need to copy (or move) the ''myProgs/myProgs.mk.RENAME_ME'' to ''myProgs/myProgs.mk'' (this is done so that the distribute file does not conflict with your own customized version.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
% cd myProgs&lt;br /&gt;
% cp myProgs.mk.RENAME_ME myProgs.mk&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Then edit the myProgs.mk, adding the name of the program (without the cpp extension) that you have created in the myProg subdirectory (let's say you named it ''halloMSL'')&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
# THIS MAKE FILE IS USED TO MAKE PROGRAMS OR OBJECT THAT DO NOT BELONG &lt;br /&gt;
# TO THE CENTRAL REPOSITIORY WITHOUT ALTERING THE MASTER MAKEFILE&lt;br /&gt;
#&lt;br /&gt;
# 1) Rename this file to myProgs.mk&lt;br /&gt;
#&lt;br /&gt;
# 2) Place you own programs (i.e. prog1.cpp prog2.cpp) and objects (Obj1.h, Obj1.cpp) &lt;br /&gt;
#    in the myProgs sub-directory &lt;br /&gt;
#&lt;br /&gt;
# 3) Add the program next to the MYPROG definition and the objects next to MYSOURCE&lt;br /&gt;
#&lt;br /&gt;
# Example:&lt;br /&gt;
# for objects Obj1.h/Obj1.cpp and Obj2.h/Obj2.cpp&lt;br /&gt;
#&lt;br /&gt;
# MYSOURCE   = Obj1 Obj2&lt;br /&gt;
#&lt;br /&gt;
# for programs prog1.cpp prog2.cpp&lt;br /&gt;
#&lt;br /&gt;
# MYPROGS    = prog1 prog2&lt;br /&gt;
#&lt;br /&gt;
# To compile (from the above directory):&lt;br /&gt;
# Objects:&lt;br /&gt;
#   make objs/Obj1.o&lt;br /&gt;
#   make objs/Obj2.o&lt;br /&gt;
#&lt;br /&gt;
# Programs:&lt;br /&gt;
#   make bin/prog1&lt;br /&gt;
#   make bin/prog2&lt;br /&gt;
&lt;br /&gt;
MYSOURCE  = &lt;br /&gt;
&lt;br /&gt;
MYPROGS   = halloMSL&lt;br /&gt;
&lt;br /&gt;
MYHEADERS = &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Finally return to the main subdirectory and compile your program&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
% cd ..&lt;br /&gt;
% make helloMSL&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The program will be compiled in the subdirectory ''bin/''.  To run it&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
% bin/helloMSL&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Senes</name></author>
		
	</entry>
</feed>