title: How to use lemon graph library on Omnet++ projects?
body: <p>I am trying to design a network(Random Graph) in omnet++ where I want to parse the network nodes using Lemon Graph Library. I have installed the library and it works fine if I try to compile any normal c++ file with nodes and edges in any graph using command line <code>g++ -o file file.cpp/cc -lemon</code>. But when i tried it with one of my omnet++ project(which has nothing in it now) the code is as below </p>
  
  <pre><code>#include &lt;omnetpp.h&gt;
  #include &lt;iostream&gt;
  #include &lt;lemon/list_graph.h&gt;
  using namespace lemon;
  using namespace std;
  
  class Facility : public cSimpleModule
  {
      protected:
      virtual void initialize();
      virtual void handleMessage(cMessage *msg);
  
  };
  
  Define_Module(Facility);
  
  void Facility :: initialize(){
  
  
  }
  
  void Facility :: handleMessage(cMessage *msg){
  
  }`
  </code></pre>
  
  <p>the include headers are in angle brackets(not to be confused with double quotes). So when i build the code I get the following errors:</p>
  
  <pre><code>    Description Resource    Path    Location    Type
  ‘class cEnvir’ has no member named ‘push_back’  PSUC        line 686, external location: /usr/local/include/lemon/bits/graph_extender.h C/C++ Problem
  ‘class cEnvir’ has no member named ‘push_back’  PSUC        line 687, external location: /usr/local/include/lemon/bits/graph_extender.h C/C++ Problem
  ‘test’ does not name a type test.cc /ztest  line 9  C/C++ Problem
  invalid use of qualified-name ‘cSimulation::getActiveEnvir’ PSUC        line 69, external location: /home/vijay/omnetpp-4.6/include/cenvir.h    C/C++ Problem
  make: *** [out/gcc-debug//psuc.o] Error 1   PSUC            C/C++ Problem
  make: *** [out/gcc-debug//test.o] Error 1   ztest           C/C++ Problem
  no matching function for call to ‘lemon::AlterationNotifier&lt;lemon::GraphExtender&lt;lemon::ListGraphBase&gt;, lemon::ListGraphBase::Arc&gt;::add(cEnvir&amp;)’   PSUC        line 688, external location: /usr/local/include/lemon/bits/graph_extender.h C/C++ Problem
  </code></pre>
  
  <p>Why doesn't the Omnet++ code get compatible with Lemon graph Library?</p>