title: How do you run and compile C++ code on alpine linux?
body: <p>I’m new to alpine linux, and I’ve been trying to use it to run and compile C++ code, but I can’t get it to run the code.
  First, I put the code in the opt folder, than I did this:</p>
  
  <blockquote>
    <p>cd / → cd opt → clang++ -S -emit-llvm myFile.cpp </p>
  </blockquote>
  
  <p>That created myFile in the opt folder, then I tried to use</p>
  
  <blockquote>
    <p>sh myFile </p>
  </blockquote>
  
  <p>To run the code, but it said “no such file or directory found,” If I do sh myFile.cpp, I get a few errors.</p>
  
  <p>What am I doing wrong here?
  Some of the packages I have installed are build-base, and clang.</p>