title: Codelite Clang Error: No Such File or Directory @./build-Debug
body: <p>I have never used Codelite and am attempting to use it as apart of a requirement for &quot;C Programming for Beginners&quot; course on UDEMY.</p>
  <p>I am using a Macbook PRO OS version 10.14.5 and Codelite version 14.0.0.</p>
  <p>I have created a workspace called SampleApp and within lies a project called Sample with a src file and a main.c file.</p>
  <p>The main. c file contains the following code:</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      printf(&quot;Hello, my name is Link\n&quot;);
      return 0;
  }
  </code></pre>
  <p>When I build the code I get the following output:</p>
  <pre><code>/bin/sh -c '/usr/bin/make -j8 -e -f Makefile'
  ====0 errors, 0 warnings====
  
  Working directory is set to: /Users/link/Desktop/c_code/build-Debug/lib
  Executing: open -n -a Terminal /tmp/codelite-exec.sh
  Program exited
  </code></pre>
  <p>Unfortunately though, when my terminal pops up I get the following error message:</p>
  <pre><code>22:37:07-link@links-MacBook-Pro:~$ /tmp/codelite-exec.sh ; exit;
  /tmp/codelite-exec.sh: line 3: cd: /Users/link/Desktop/c_code/build-Debug/lib: No such file or directory
  Hit any key to continue...
  </code></pre>
  <p>I am unsure of how to debug this or get this program to run as it appears the target and or the executing directory is not set properly. Kindly advise, thank you.</p>
  <p>** <strong>UPDATE</strong> **</p>
  <p>There is no lib folder within <code>/Users/link/Desktop/c_code/build-Debug/lib</code> .. perhaps that's why the code in <code>/tmp/codelite-exec.sh</code> is not working..  Below shows <code>/tmp/codelite-exec.sh</code> - line 2 attempts to change directories to the lib folder and execute the Sample workspace but the lib file doesn't exist..</p>
  <pre><code>#!/bin/bash
  command=&quot;/Users/link/Desktop/c_code/build-Debug/bin/Sample&quot;
  cd /Users/link/Desktop/c_code/build-Debug/lib &amp;&amp; ${command}
  echo Hit any key to continue...```
  
  </code></pre>