Note that there are some explanatory texts on larger screens.

plurals
  1. POMingw multiple definition of _Unwind_resume
    primarykey
    data
    text
    <p>I know a similar question to this has already been asked but I have been unable to fix this issue for hours.</p> <p>Basically I have a DLL with code in it and an application that calls it. Everything works fine but if I take the two outside of my development enviroment it says the program cannot start because <code>libgcc_s_dw2 1.dll</code> is missing from the computer. </p> <p>This is fair enough considering it is not a development computer. So for distribution I added the compiler flags "<code>-static-libgcc -static-libstdc++</code>". I did this for the dll and for the application.</p> <p>But when I compile the application I get the error:</p> <blockquote> <p>"multiple definition of `_Unwind_Resume'"</p> </blockquote> <p>I thought this was due to both the dll and the application having the static libraries built into them, and it is. But if both of them don't have the static libraries built in, the program will not run on end user machines.</p> <p>How can I remove this error while still having no dependencies on the mingw libs? My IDE is Code::Blocks.</p> <p>David</p> <p><strong>EDIT:</strong> here is the build log when building the application that links to the dll:</p> <pre><code>c:/mingw/bin/../lib/gcc/mingw32/4.6.2/libgcc_eh.a(unwind-dw2.o):(.text+0x298c): multiple definition of `_Unwind_Resume' ..\EquilibriumEngine\bin\Release\libEquilibriumEngine.dll.a(d000015.o):(.text+0x0): first defined here collect2: ld returned 1 exit status Process terminated with status 1 (0 minutes, 0 seconds) 2 errors, 0 warnings </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload