<?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>Modest Destiny (Posts about C)</title><link>https://blog.modest-destiny.com/</link><description></description><atom:link href="https://blog.modest-destiny.com/categories/c.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2021 Adam Basfop Cavendish </copyright><lastBuildDate>Mon, 22 Mar 2021 08:19:52 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>A Humble Introduction to the Basics of GDB</title><link>https://blog.modest-destiny.com/posts/a-humble-introduction-to-the-basics-of-gdb/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div&gt;&lt;h2&gt;What is GDB?&lt;/h2&gt;
&lt;p&gt;GDB is a user process that attaches on to another user process.&lt;/p&gt;
&lt;p&gt;That's all.&lt;/p&gt;
&lt;h2&gt;Project Build Type&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Debug build: &lt;code&gt;gcc -g&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;Works with gdb&lt;/li&gt;
&lt;li&gt;Shows source code&lt;/li&gt;
&lt;li&gt;Easy mode&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Release with debug information build:
&lt;ul&gt;
&lt;li&gt;Works with gdb&lt;/li&gt;
&lt;li&gt;Shows source code, however messy because of optimizations&lt;/li&gt;
&lt;li&gt;Hard mode&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Release build: &lt;code&gt;gcc -O2&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;Works with gdb&lt;/li&gt;
&lt;li&gt;No source code information available&lt;/li&gt;
&lt;li&gt;Debug with disassembled application&lt;/li&gt;
&lt;li&gt;Hell mode&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/a-humble-introduction-to-the-basics-of-gdb/"&gt;Read more…&lt;/a&gt; (6 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>C</category><category>C++</category><category>GDB</category><guid>https://blog.modest-destiny.com/posts/a-humble-introduction-to-the-basics-of-gdb/</guid><pubDate>Thu, 07 Jul 2016 07:29:49 GMT</pubDate></item><item><title>Sequence Point</title><link>https://blog.modest-destiny.com/posts/sequence-point/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div&gt;&lt;p&gt;Ref: &lt;a href="http://blog.tinlans.org/2010/08/06/sequence-point/"&gt;http://blog.tinlans.org/2010/08/06/sequence-point/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/sequence-point/"&gt;Read more…&lt;/a&gt; (4 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>C</category><category>C++</category><category>voices-of-the-world</category><guid>https://blog.modest-destiny.com/posts/sequence-point/</guid><pubDate>Wed, 16 Sep 2015 08:47:33 GMT</pubDate></item><item><title>"Undefined reference to ..." How can I find the library to link to?</title><link>https://blog.modest-destiny.com/posts/undefined-reference-to-how-can-i-find-the-library-to-link-to/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div&gt;&lt;p&gt;The most panicking error among all the make errors is the &lt;code&gt;undefined reference&lt;/code&gt; error, which is mostly cause by an unlinked library.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/undefined-reference-to-how-can-i-find-the-library-to-link-to/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Bash</category><category>C</category><category>C++</category><guid>https://blog.modest-destiny.com/posts/undefined-reference-to-how-can-i-find-the-library-to-link-to/</guid><pubDate>Tue, 12 May 2015 04:00:21 GMT</pubDate></item></channel></rss>