title: "Illegal block entry" with YAML monsters example in yaml-cpp
body: <p>I am running the example found <a href="http://code.google.com/p/yaml-cpp/wiki/HowToParseADocument" rel="nofollow">here</a> to try out using YAML in C++. I copied the code verbatim into test.cpp in a new project folder.  I compiled YAML into a static library and am linking it to my project.  I'm running Ubuntu 11.10.  I use the following command to compile:</p>
  
  <pre><code>    g++ -Wall -I. -g test.cpp -lyaml-cpp -L.
  </code></pre>
  
  <p>I get the following error statement:</p>
  
  <pre><code>    terminate called after throwing an instance of 'YAML::ParserException'
         what(): yaml-cpp: error at line 4, column 2: illegal block entry
      Aborted
  </code></pre>
  
  <p>What is the meaning of this exception?  And what could be wrong?  I couldn't find a clear documentation for what each of the exceptions could mean, so even a link to this information would be helpful.  I am probably out of my depth, as I am new to YAML, using libraries, and linux for that matter.  Thanks in advance for your help.</p>
  
  <p>Edit: The error occurs before "parser.GetNextDocument(doc)".  Also, I ran a simpler example from the website that stores a single scalar, and that worked fine.  Is the exception about my input file, or my code?</p>