<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>RingBuffer (Posts about cpp:basic)</title><link>http://ringbuffer.org/</link><description></description><atom:link href="http://ringbuffer.org/categories/cat_cppbasic.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Mon, 02 Mar 2026 18:01:39 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Building with Make</title><link>http://ringbuffer.org/cpp/basic/cpp-make/</link><dc:creator>Henrik von Coler</dc:creator><description></description><guid>http://ringbuffer.org/cpp/basic/cpp-make/</guid><pubDate>Fri, 10 Dec 2021 00:00:00 GMT</pubDate></item><item><title>Working with the g++ Compiler</title><link>http://ringbuffer.org/cpp/basic/cpp-compiler/</link><dc:creator>Henrik von Coler</dc:creator><description>&lt;section id="compiling-a-program"&gt;
&lt;h2&gt;Compiling a Program&lt;/h2&gt;
&lt;p&gt;Examples and projects in this modules can be compiled with g++ from the GNU Compiler Collection.
With the proper libraries installed, g++ can be called directly for small to medium sized projects.
The first example, just passing through the audio, is compiled with the following command:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code console"&gt;&lt;a id="rest_code_fea6cb678cc34367817f2b49809a2598-1" name="rest_code_fea6cb678cc34367817f2b49809a2598-1" href="http://ringbuffer.org/cpp/basic/cpp-compiler/#rest_code_fea6cb678cc34367817f2b49809a2598-1"&gt;&lt;/a&gt;&lt;span class="go"&gt;g++ -Wall src/gain_example.cpp src/oscman.cpp -ljack -o gain_example&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The compiler gets the extra argument &lt;code class="docutils literal"&gt;Wall&lt;/code&gt; to print all warnings.
All source (&lt;code class="docutils literal"&gt;cpp&lt;/code&gt;) files are passed to the compiler, followed by all libraries which need to be linked (linker arguments). The name of the binary or executable is specified after the &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;-o&lt;/span&gt;&lt;/code&gt; flag.&lt;/p&gt;
&lt;/section&gt;
&lt;hr class="docutils"&gt;
&lt;section id="build-scripts"&gt;
&lt;h2&gt;Build Scripts&lt;/h2&gt;
&lt;/section&gt;</description><guid>http://ringbuffer.org/cpp/basic/cpp-compiler/</guid><pubDate>Fri, 10 Dec 2021 00:00:00 GMT</pubDate></item></channel></rss>