title: compile and link OpenEXR emscripten multiple main function defines
body: <p>I'm trying to compile <code>OpenEXR with emscripten</code> and link it to my program that will eventually be an <code>html</code> file.</p>
  
  <p>I have no problem compiling <code>OpenEXR with emscripten</code>. The problem is when I try to link the <code>.bc</code> file with my application. I get an error that says </p>
  
  <blockquote>
    <p>"EXEC : error : Linking globals named 'main': symbol multiply
    defined!".</p>
  </blockquote>
  
  <p>I tracked this error and found out that there is a <code>main</code> function inside one of the CPP files inside OpenEXR. it's <a href="https://android.googlesource.com/platform/external/free-image/+/71163caf89862f79f6419077cf6f0b18b7725d52/Source/OpenEXR/IlmImf/b44ExpLogTable.cpp" rel="nofollow">b44ExpLogTable.cpp</a></p>
  
  <p>So I can't link my program with <code>OpenEXR.bc</code> library because I have a main function and b44ExpLogTable.cpp also has a <code>main</code> function.</p>
  
  <p>I don't know how to get around that. If I try to compile <code>OpenEXR using MSVC++</code> I don't get this problem. </p>
  
  <p>Does anyone know how to solve this issue?</p>