I know that a similar question has already been asked, but I could not solve this problem for hours.
Basically, I have a DLL with code in it and an application that calls it. Everything works fine, but if I pick up two outside of my development environment, he says that the program cannot start because it is libgcc_s_dw2 1.dllmissing from the computer.
This is true considering that this is not a development computer. Therefore, for distribution, I added the compiler flags " -static-libgcc -static-libstdc++". I did this for dll and for application.
But when I compile the application, I get an error message:
"multiple definition` _Unwind_Resume '"
I thought this was due to both the dll and the application in which the static libraries are built in, and this is so. But if both of them do not have built-in static libraries, the program will not run on end-user computers.
How to remove this error without having any dependencies on mingw libs? My IDE is Code :: Blocks.
David
EDIT: here is the build log when creating an application that references the dll:
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
source
share