Re: [Mingw-w64-public] Link with static libwinpthread problem

2013-02-04 Thread NightStrike
> 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? -

[Mingw-w64-public] Is it safe to mix "-std=c++0x" and non-c++0x object code?

2013-02-04 Thread K. Frank
Hello List! If I have several source files that get compiled to object files and then linked together to for m an executable, is it safe to compile some of them with "-std=c++0x" and others without? Or does turning on "-std=c++0x" introduce some kind of abi breakage? Thanks. K. Frank

Re: [Mingw-w64-public] Link with static libwinpthread problem

2013-02-04 Thread Алексей Павлов
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

Re: [Mingw-w64-public] Is it safe to mix "-std=c++0x" and non-c++0x object code?

2013-02-04 Thread Kai Tietz
2013/2/4 K. Frank : > Hello List! > > If I have several source files that get compiled to object files and then > linked together to for m an executable, is it safe to compile some > of them with "-std=c++0x" and others without? > > Or does turning on "-std=c++0x" introduce some kind of abi breakag

Re: [Mingw-w64-public] Is it safe to mix "-std=c++0x" and non-c++0x object code?

2013-02-04 Thread Alexander Shaduri
Hello, On Mon, 4 Feb 2013 09:37:03 -0500 K. Frank wrote: > If I have several source files that get compiled to object files and > then linked together to for m an executable, is it safe to compile some > of them with "-std=c++0x" and others without? > > Or does turning on "-std=c++0x" introduce

Re: [Mingw-w64-public] Is it safe to mix "-std=c++0x" and non-c++0x object code?

2013-02-04 Thread K. Frank
Hello Kai and Alexander! On Mon, Feb 4, 2013 at 11:28 AM, Kai Tietz wrote: > 2013/2/4 K. Frank : >> Hello List! >> ... >> Or does turning on "-std=c++0x" introduce some kind of abi breakage? >> ... > > Well, there might be troubles by doing so. There is - IIRC - an > incompatibility between c++1