g++ -v example.cpp -static-libstdc++ -static-libgcc -Wl,-Bstatic
-lwinpthread -Wl,-Bdynamic
This is output:
Using built-in specs.
COLLECT_GCC=c:\QtSDK\Qt-builds\toolchains\mingw32\bin\g++.exe
COLLECT_LTO_WRAPPER=c:/qtsdk/qt-builds/toolchains/mingw32/bin/../libexec/gcc/i686-w64-mingw32/4.7.2/lto-w
> 2013/1/26 Алексей Павлов :
>> Hi!
>> I try to build static program and pass to LDFLAGS:
>>
>> -Wl,-Bstatic -lwinpthread -Wl,-Bdynamic -static -s
>>
>> But it link with dynamic libwinpthreads-1.dll. What I doing wrong?
Can you show the output of adding -v to that command line?
-
Ping?
2013/1/26 Алексей Павлов :
> Hi!
> I try to build static program and pass to LDFLAGS:
>
> -Wl,-Bstatic -lwinpthread -Wl,-Bdynamic -static -s
>
> But it link with dynamic libwinpthreads-1.dll. What I doing wrong?
--
Hi!
I try to build static program and pass to LDFLAGS:
-Wl,-Bstatic -lwinpthread -Wl,-Bdynamic -static -s
But it link with dynamic libwinpthreads-1.dll. What I doing wrong?
--
Master Visual Studio, SharePoint, SQL, ASP.N