Goodnight. I teach the C ++ file to be compiled, but when I start it throws it out enter image description here

how to cure an error and can tell me how to make friends a compiler on my system win7-x64, MinGW with GtkSharp. At each compilation I throw in the folder libstdc ++ - 6 for MinGW to work. Without it, an entry point error occurs.

    1 answer 1

    You do not have a bad option, even if it is in the program folder, it does not ask for it. The second option is to put libstdc++.dll in another folder, and set the path to it in the PATH environment variable. Then Vindouz booth will automatically find it. The third option is to copy it to system32 , in practice I would not recommend doing so, but it will work. Read more about searching for DLLs .

    Well, at the root of the problem can be solved by static inclusion of libstdc++ in the executable file. To do this, add the compilation flags -static-libstdc++ and -static-libgcc . After this build no standard DLL with the program you do not need to be.

    • thanks for the help. - Rei