<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I have created a copy from files custom-app.h, custom-app.cc and <tt
      class="docutils literal"><span class="pre">ndn-simple-with-custom-app.cc
        in scratch directory I have renamed the files to custom-app1.h
        and .cc, and the classes to CustomApp1, when I try to run I see
        the following error:<br>
      </span></tt><small><font face="Courier New, Courier, monospace"><span
          class="docutils literal"><span class="pre"><br>
            root@debian:~/ndnSIM/ns-3# ./waf --run=prueba<br>
            Waf: Entering directory `/root/ndnSIM/ns-3/build'<br>
            [1022/2363] cxx: scratch/custom-app1.cc ->
            build/scratch/custom-app1.cc.3.o<br>
            [1023/2363] cxx: scratch/prueba.cc ->
            build/scratch/prueba.cc.1.o<br>
            [2272/2363] cxxprogram: build/scratch/prueba.cc.1.o ->
            build/scratch/prueba<br>
            [2288/2363] cxxprogram: build/scratch/custom-app1.cc.3.o
            -> build/scratch/custom-app1<br>
            /usr/lib/gcc/i486-linux-gnu/4.7/../../../i386-linux-gnu/crt1.o:
            In function `_start':<br>
            (.text+0x18): undefined reference to `main'<br>
            collect2: error: ld returned 1 exit status<br>
            Waf: Leaving directory `/root/ndnSIM/ns-3/build'<br>
            Build failed<br>
             -> task in 'custom-app1' failed (exit status 1):<br>
                    {task 153262796: cxxprogram custom-app1.cc.3.o ->
            custom-app1}<br>
            ['/usr/bin/g++', '-pthread', '-Wl,-z,relro',
            'scratch/custom-app1.cc.3.o', '-o',
            '/root/ndnSIM/ns-3/build/scratch/custom-app1',
            '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed',
            '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
            '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
            '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
            '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
            '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L/usr/lib',
            '-L/usr/lib', '-lns3-dev-test-debug',
            '-lns3-dev-csma-layout-debug',
            '-lns3-dev-point-to-point-layout-debug',
            '-lns3-dev-netanim-debug', '-lns3-dev-lte-debug',
            '-lns3-dev-spectrum-debug', '-lns3-dev-antenna-debug',
            '-lns3-dev-aodv-debug', '-lns3-dev-dsdv-debug',
            '-lns3-dev-dsr-debug', '-lns3-dev-mesh-debug',
            '-lns3-dev-olsr-debug', '-lns3-dev-csma-debug',
            '-lns3-dev-wimax-debug', '-lns3-dev-applications-debug',
            '-lns3-dev-virtual-net-device-debug', '-lns3-dev-uan-debug',
            '-lns3-dev-energy-debug', '-lns3-dev-flow-monitor-debug',
            '-lns3-dev-ndnSIM-debug', '-lns3-dev-visualizer-debug',
            '-lns3-dev-nix-vector-routing-debug',
            '-lns3-dev-tap-bridge-debug', '-lns3-dev-internet-debug',
            '-lns3-dev-bridge-debug', '-lns3-dev-point-to-point-debug',
            '-lns3-dev-mpi-debug', '-lns3-dev-wifi-debug',
            '-lns3-dev-buildings-debug', '-lns3-dev-propagation-debug',
            '-lns3-dev-mobility-debug', '-lns3-dev-config-store-debug',
            '-lns3-dev-emu-debug', '-lns3-dev-fd-net-device-debug',
            '-lns3-dev-topology-read-debug', '-lns3-dev-network-debug',
            '-lns3-dev-stats-debug', '-lns3-dev-core-debug', '-lrt',
            '-lboost_graph-mt', '-lboost_system-mt',
            '-lboost_signals-mt', '-lboost_filesystem-mt',
            '-lpython2.7']</span></span></font></small><tt
      class="docutils literal"><span class="pre"><br>
        <br>
        what is the problem?<br>
        <br>
        ciao<br>
      </span></tt>
  </body>
</html>