$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] Clang on Windows
From: Robert (r.firl_at_[hidden])
Date: 2018-03-13 14:38:13
On 3/10/2018 6:06 AM, degski via Boost wrote:
> Some time ago, got things working quite well with the following project
> file:
> 
> 
> import option ;
> 
> using clang : 6.0 :
>    "C:/Program Files/LLVM/bin/clang++.exe" :
>    <compileflags>-fmsc-version=1911
> 
>    <ranlib>"C:/Program Files/LLVM/bin/llvm-ranlib.exe"
>    <archiver>"C:/Program Files/LLVM/bin/llvm-ar.exe"
>    <rc>"C:/Program Files (x86)/Windows Kits/10/bin/10.0.16299.0/x64/rc.exe"
> 
>    <linkflags>-fuse-ld=lld
>    <linkflags>-flto=thin
> 
>    <cxxflags>-Wno-gnu-string-literal-operator-template
>    <cxxflags>-Xclang <cxxflags>-flto-visibility-public-std
> 
>    <cxxflags>-fno-ms-compatibility
>    <cxxflags>-fno-delayed-template-parsing
>    <cxxflags>-Wno-dynamic-exception-spec # TODO: file bug to MS
>    <cxxflags>-Wno-c++11-narrowing # TODO: wut
>    <cxxflags>-D_WINSOCK_DEPRECATED_NO_WARNINGS # TODO: wut
> 
>    <cxxflags>-std=c++17
>    <cxxflags>-Wunused-command-line-argument
> 
>    <cxxflags>-DBOOST_USE_WINDOWS_H
>    <cxxflags>-DBOOST_NO_ANSI_APIS
> 
>    <cxxflags>-DBOOST_USE_WINAPI_VERSION=0x1000
>    <cxxflags>-DBOOST_USE_WINDOWS_H=1
>    <cxxflags>-D_WIN32_WINNT=0x1000
> 
>    <cxxflags>-D_MT
>    <cxxflags>-D_WIN32
>    <cxxflags>-D_WIN64
>    <cxxflags>-DNOMINMAX
>    <cxxflags>-DWIN32_LEAN_AND_MEAN
>    <cxxflags>-D_HAS_AUTO_PTR_ETC=1
>    <cxxflags>-D_ITERATOR_DEBUG_LEVEL=0
>    <cxxflags>-D_CRT_DECLARE_NONSTDC_NAMES=1 # clang defines __STDC__, cl
> does not (see definition of _CRT_INTERNAL_NONSTDC_NAMES)
> 
>    #
> <cxxflags>-IC:/PROGRA~2/MICROS~1/2017/COMMUN~1/VC/Tools/MSVC/1411~1.255/atlmfc/include
>    #
> <linkflags>-LC:/PROGRA~2/MICROS~1/2017/COMMUN~1/VC/Tools/MSVC/1411~1.255/atlmfc/lib/x64
>    ;
> 
> option.set keep-going : false ;
> 
With all of the configuration items, does Clang successfully build C++ 
MFC Windows Forms and/or DLL projects?
--Robert
> degski
> 
> _______________________________________________
> Unsubscribe & other changes: http://listarchives.boost.org/mailman/listinfo.cgi/boost
>