title: Why does gdb always give "Program exited with code 01"?
body: <p>I have a <code>main.cpp</code> file and two .hpp files, one of which contains a set of classes and methods that I make modifications to. Compiling <code>main</code> is successful, but Running <code>main</code> results in <code>Segmentation Fault</code>. Following this <a href="https://www.cs.cmu.edu/~gilpin/tutorial/" rel="nofollow">tutorial</a>, I used:  </p>
  
  <pre><code>$ gdb main
  (gdb) run
  </code></pre>
  
  <p>However, <code>(gdb) run</code> always produces the following regardless whether the .hpp file has bugs: </p>
  
  <pre><code>Reading symbols for shared libraries . done
  Usage: viewer NODES_FILE TETS_FILE
  
  Program exited with code 01.
  </code></pre>
  
  <p>Is there something that I am missing? </p>