There is a static library and a console application that uses this library. Only STL tools are used in the library. Assembly and compilation takes place without errors and warnings. Development environment - Clion, using MinGw, GCC version 4.9.3. Inside the environment, the application works as expected, but when you run the assembled release version via the executable exe file, an error appears: error

I compiled on Linux, GCC 4.8.4 - nothing like this, everything is working fine.

    1 answer 1

    This means that in the DLL where the __cxa_throw_bad_array_new_length function is located this function is not entered in the function export table. First of all, you should check the function itself in its DLLs, whether it is correctly declared and exported. Further, I can suggest playing with the format in which DLLs are compiled. Perhaps the compiler incorrectly builds DLLs in the format you specified (or which is the default).

    If the problem persists, download any export weaver, for example, this one , and check if this function is actually declared in the export table or not. If declared - you need to dig the main application, understand why it does not see the function. Perhaps in the main application, the import table incorrectly specifies the function source DLL or something else ...