> 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?
-
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
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/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
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
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