c++ - Using Clang 3.6 with MinGW w64 4.8 -


i've got clang-based project uses mingw (w64). i'm in process of updating clang 3.6. apparently mingw changed abi in 4.7 , clang uses new abi, i'm updating mingw @ same time.

however, i'm having slight problem. using clang load libstdc++ headers results in great many compilation errors- particularly stuff constant expressions never being constant. have enabled c++14 , c++1y support.

furthermore, i'm unable clang recognize target mingw. seems triple support mingw removed in 3.6 , don't know how communicate clang should emit code compatible mingw abi.

how can make clang compatible mingw w64?

you can make clang target mingw-w64 via -target, i.e.:

$ clang -v 2>&1|grep target target: i386-pc-windows-cygnus  $ clang -target i686-w64-mingw32 -v 2>&1|grep target target: i686-w64-windows-gnu 

simply renaming clang executable i686-w64-mingw32-clang++.exe may want.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -