rsk82 rsk82 -4 years ago 368
C++ Question

how to do static linking of libwinpthread-1.dll in mingw?

I use mingw from here:

And I've sucessfully managed to link statically
by using
-static-libgcc -static-libstdc++
parameters, but I cannot find a command for doing the same with

Answer Source

You should probably check command line options documentation for GCC.

These's no '-static-something' command, only standard libraries (libgcc and libstdc++) can be set to static linking with one command. For other libraries, you first switch to static linking with "-static" and then list the libraries to include with separate commands, ie "-lpthread".

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download