title: Cross-compile to ARM64 (AARCH64) on Intel 64-bit Red Hat 7.5 can't find dlfcn.h, cstddef.h, etc
body: <p>I have a program that compiles in gcc fine on Red Hat 64-bit Linux.  I run and it works perfectly fine to make a shared object file:</p>
  <pre><code>gcc -ansi -std=c++11-shared -fPIC...etc
  </code></pre>
  <p>I am trying to cross-compile for 64-bit ARM (AARCH64) on this same machine.</p>
  <p>I installed the cross-compile tools:</p>
  <pre><code>sudo yum install gcc-aarch64-linux-gnu
  sudo yum install gcc-c++-aarch64-linux-gnu
  </code></pre>
  <p>However, when I run the same command that works fine, just running as</p>
  <pre><code>aarch64-linux-gnu-gcc -ansi -std=c++11 -shared -fPIC...etc
  </code></pre>
  <p>It gets the errors and doesn't build:</p>
  <pre><code> fatal error: dlfcn.h: No such file or directory
   #include &lt;dlfcn.h&gt;
  </code></pre>
  <p>If I comment that out, it hits the next includes of cstddef.h fatal error not found, etc</p>
  <p>How do I make this work?</p>