title: Cannot execute .o file created by Netbeans
body: <p>I have a project on my local computer and I want to run/debug a cppunit Test on a server (Debian). I created the .o files with Netbeans and set the permissions to executable.</p>
  
  <pre><code>drwxr-xr-x 2 myName myGroup   4096 18. Dec 08:40 .
  drwxr-xr-x 3 myName myGroup   4096 18. Dec 08:40 ..
  -rwxr-xr-x 1 myName myGroup 393488 18. Dec 08:40 SisyTestData.o
  -rwxr-xr-x 1 myName myGroup   3127 18. Dec 08:40 SisyTestData.o.d
  -rwxr-xr-x 1 myName myGroup  30016 18. Dec 08:40 SisyTestDataRunner.o
  -rwxr-xr-x 1 myName myGroup    173 18. Dec 08:40 SisyTestDataRunner.o.d
  </code></pre>
  
  <p>If I try to run ./SisyTestDataRunner from the directory where it is locate I get </p>
  
  <pre><code>bash: ./SisyTestDataRunner: Datei oder Verzeichnis nicht gefunden
  </code></pre>
  
  <p>(means: File or Directory not found)</p>
  
  <p>If I try to run ./SisyTestDataRunner.o I get</p>
  
  <pre><code>bash: ./SisyTestDataRunner.o: Kann die Datei nicht ausführen.
  </code></pre>
  
  <p>(means: Can not execute the file)</p>
  
  <p>SisyTestDataRunner looks like the following:</p>
  
  <pre><code>#include &lt;cppunit/BriefTestProgressListener.h&gt;
  #include &lt;cppunit/CompilerOutputter.h&gt;
  #include &lt;cppunit/extensions/TestFactoryRegistry.h&gt;
  #include &lt;cppunit/TestResult.h&gt;
  #include &lt;cppunit/TestResultCollector.h&gt;
  #include &lt;cppunit/TestRunner.h&gt;
  
  int main() {
      // Create the event manager and test controller
      CPPUNIT_NS::TestResult controller;
  
      // Add a listener that colllects test result
      CPPUNIT_NS::TestResultCollector result;
      controller.addListener(&amp;result);
  
      // Add a listener that print dots as test run.
      CPPUNIT_NS::BriefTestProgressListener progress;
      controller.addListener(&amp;progress);
  
      // Add the top suite to the test runner
      CPPUNIT_NS::TestRunner runner;
      runner.addTest(CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest());
      runner.run(controller);
  
      // Print test in a compiler compatible format.
      CPPUNIT_NS::CompilerOutputter outputter(&amp;result, CPPUNIT_NS::stdCOut());
      outputter.write();
  
      return result.wasSuccessful() ? 0 : 1;
  }
  </code></pre>
  
  <p>The file SisyTestData contains one testcase that worked when I started it on my local computer (but it ran on the server).</p>
  
  <p>Is it in general impossible to run a file created by netbeans from command line? Do I have to compile and link it directly on the server?</p>