|
From: Eli Z. <el...@gn...> - 2012-08-11 20:09:57
|
> Date: Sat, 11 Aug 2012 09:41:32 -0700 (PDT) > From: mingw124 <for...@li...> > > > OK so for example for pthread, what would it be? The lib is called > "libpthread.dll.a" and you link it as -lpthread. How do I link it statically > so I don't need the dll. You can't. libpthread.dll.a is not a static library, it's an import library used to link against the dll. You need to get hold of libpthread.a, and then use "-static -lpthread" on the link command line. |