[cfe-dev] Clang on Windows targeting mingw-64/gcc building 64bit code

Edward Diener via cfe-dev cfe-dev at lists.llvm.org
Thu Aug 20 07:53:31 PDT 2015


When I build clang on Windows targeting mingw(-64)/gcc using CMake, is 
the clang++.exe capable of building 64-bit binaries, or do I need to 
specify anything in the CMake parameters for this ?

My assumption is that the clang++.exe built supports both 32-bit and 
64-bit code. However after building, and then setting the PATH so that 
both the clang bin directory and the mingw-64/gcc 5.1 64 bit 
implementation's bin directory are added, when I execute:

clang++ --version I get from Windows:

"The program can't start because libgcc_s_dw2-1.dll is missing from your 
computer."

The particular DLL libgcc_s_dw2-1.dll is present in the mingw-64/gcc 5.1 
32 bit implementation. Am I supposed to be using the 32 bit 
implementation of mingw-64/gcc even when building a 64-bit binary ?




More information about the cfe-dev mailing list