Building ROOT on windows 10


Please read tips for efficient and successful posting and posting code

_ROOT Version: ROOT 6.22
_Platform:Windows 10
_Compiler:Visual studio 2019


Dear ROOT community:
When I was building ROOT, the following error occurred:

D:/Program_Files/Visual Studio 2019/MSBuild/Microsoft/VC/v160/Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited; code -1073741515). [ D:/root_build/hsimple.vcxproj]

Can you tell me how to solve this problem?

We would need more information. could you provide the lines before this error message? Could you build with the CMAKE_VERBOSE_MAKEFILE=ON option?

yes, I refer to the suggestion of this link https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/14?u=zhl56746 and I did not change these parameters .

Which exact version of Visual Studio are you using? (e.g. v16.6.5)

Microsoft Visual Studio Professional 2019
version 16.6.5
VisualStudio.16.Release/16.6.5+30320.27
Microsoft .NET Framework
version 4.8.03752

Thanks. And as I said:

Thanks, the previous information like this:

250>InitializeBuildStatus:
         正在对“Win32\Debug\hsimple\hsimple.tlog\unsuccessfulbuild”执行 Touch 任务。
       CustomBuild:
         “‘D:\root_build\CMakeFiles\1aa2ae4508a99d50a324a280a39ab104\hsimple.rule’的生成依赖于由‘D:\root_build\CMakeFiles\60ee
         b8860dc634200c9275946a8f79e5\hsimple.root.rule’的生成所产生的‘D:\ROOT_BUILD\TUTORIALS\HSIMPLE.ROOT’。无法并 行生成项。”
         Generating tutorials/hsimple.root
   250>D:\Program_Files\Visual Studio 2019\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006:
        “cmd.exe”已退出,代码为 -1073741515。 [D:\root_build\hsimple.vcxproj]
   250>已完成生成项目“D:\root_build\hsimple.vcxproj”(默认目标)的操作 - 失败。
     1>已完成生成项目“D:\root_build\ALL_BUILD.vcxproj”(默认目标)的操作 - 失败。

生成失败。

OK, that doesn’t help much… I’ll try to build ROOT 6.22 with VS v16.6.5 and I’ll come back to you

So I had no problem building ROOT 6.22 with the latest version of Visual Studio (16.6.5). Did you build in Debug mode? And since the hsimple step is executed near the end of the build, are you sure there was no other error before this one?

Yes, I build in Debug mode, and the information to build the project is as follows:

D:\root_build>cmake -G "Visual Studio 16 2019" -A Win32 -Thost=x64 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_CXX_STANDARD=14 D:/root_source
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
-- The C compiler identification is MSVC 19.26.28806.0
-- The CXX compiler identification is MSVC 19.26.28806.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Program_Files/Visual Studio 2019/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Program_Files/Visual Studio 2019/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: D:/Program_Files/Git/cmd/git.exe (found version "2.26.2.windows.1")
-- Looking for Python
-- Found Python3: D:/Program_Files/Python38_32/python.exe (found version "3.8.4") found components: Interpreter Development NumPy Development.Module Development.Embed
-- Could NOT find Python2 (missing: Python2_NumPy_INCLUDE_DIRS NumPy) (found version "2.7.18")
-- ROOT default compression algorithm: zlib
-- PyROOT will be built for version 3.8.4
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Performing Test GLIBCXX_USE_CXX11_ABI
-- Performing Test GLIBCXX_USE_CXX11_ABI - Failed
-- ROOT Platform: win32
-- ROOT Architecture: win32
-- Build Type:  (flags = '')
-- Compiler Flags:  -nologo -ID:/root_source/build/win -FIw32pragma.h -FIsehmap.h -Zc:__cplusplus -MD -GR -EHsc- -W3 -wd4141 -wd4291 -wd4244 -wd4049 -D_WIN32 -D_XKEYCHECK_H -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS
-- Looking for ZLib
-- Found ZLIB: D:/Program_Files/Anaconda3/Library/lib/z.lib (found version "1.2.11")
-- Looking for Freetype
-- Found Freetype: D:/Program_Files/Anaconda3/Library/lib/freetype.lib (found version "2.9.1")
-- Looking for PCRE
-- Could NOT find PCRE (missing: PCRE_INCLUDE_DIR PCRE_PCRE_LIBRARY)
-- PCRE not found. Switching on builtin_pcre option
-- Looking for LZMA
-- Looking for lzma_auto_decoder in D:/Program_Files/Anaconda3/Library/lib/liblzma.lib
-- Looking for lzma_auto_decoder in D:/Program_Files/Anaconda3/Library/lib/liblzma.lib - found
-- Looking for lzma_easy_encoder in D:/Program_Files/Anaconda3/Library/lib/liblzma.lib
-- Looking for lzma_easy_encoder in D:/Program_Files/Anaconda3/Library/lib/liblzma.lib - found
-- Looking for lzma_lzma_preset in D:/Program_Files/Anaconda3/Library/lib/liblzma.lib
-- Looking for lzma_lzma_preset in D:/Program_Files/Anaconda3/Library/lib/liblzma.lib - found
-- Found LibLZMA: D:/Program_Files/Anaconda3/Library/lib/liblzma.lib (found version "5.2.4")
-- Looking for ZSTD
-- Found ZSTD: D:/Program_Files/Anaconda3/Library/lib/zstd.lib
-- Looking for xxHash
-- Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR)
-- xxHash not found. Switching on builtin_xxhash option
-- Looking for LZ4
-- Could NOT find LZ4 (missing: LZ4_LIBRARY) (found version "1.8.1")
-- LZ4 not found. Switching on builtin_lz4 option
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
-- Found TIFF: D:/Program_Files/Anaconda3/Library/lib/tiff.lib (found version "4.1.0")
-- Found PNG: D:/Program_Files/Anaconda3/Library/lib/libpng.lib (found version "1.6.37")
-- Found JPEG: D:/Program_Files/Anaconda3/Library/lib/jpeg.lib (found version "90")
-- Looking for AfterImage
-- Could NOT find AfterImage (missing: AFTERIMAGE_INCLUDE_DIR AFTERIMAGE_LIBRARIES)
-- AfterImage not found. Switching on builtin_afterimage option
-- Looking for GSL
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find GSL: Found unsuitable version "", but required is at least "1.10" (found GSL_INCLUDE_DIR-NOTFOUND)
-- GSL not found. Set variable GSL_ROOT_DIR to point to your GSL installation
--                Alternatively, you can also enable the option 'builtin_gsl' to build the GSL libraries internally'
--                For the time being switching OFF 'mathmore' option
-- Looking for OpenGL
-- Found OpenGL: opengl32
-- Looking for GLEW
-- Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES)
-- GLEW not found. Switching on builtin_glew option
-- Looking for gl2ps
-- Could NOT find gl2ps (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR)
-- gl2ps not found. Switching on builtin_gl2ps option
-- Looking for LibXml2
-- Found LibXml2: D:/Program_Files/Anaconda3/Library/lib/libxml2.lib (found version "2.9.9")
-- Found OpenSSL: D:/Program_Files/Anaconda3/Library/lib/libcrypto.lib (found version "1.1.1d")
-- Looking for MySQL
-- Could NOT find MySQL (missing: MYSQL_INCLUDE_DIR MYSQL_LIBRARIES)
-- MySQL not found. Switching off mysql option
-- Looking for Oracle
-- Oracle not found.
-- Oracle: You can specify includes: -DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client
--    currently found includes:
-- Oracle: You can specify libs: -DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib
--    currently found libs: ORACLE_LIBRARY_OCCI-NOTFOUND;ORACLE_LIBRARY_CLNTSH-NOTFOUND;ORACLE_LIBRARY_LNNZ-NOTFOUND
-- Oracle not found. Switching off oracle option
-- Looking for PostgreSQL
-- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR)
-- PostgreSQL not found. Switching off pgsql option
-- Looking for SQLite
-- Found Sqlite: D:/Program_Files/Anaconda3/Library/include
-- Looking for Pythia6
-- Pythia6 not found. Switching off pythia6 option
-- Looking for Pythia8
-- Could NOT find Pythia8 (missing: PYTHIA8_INCLUDE_DIR PYTHIA8_LIBRARY)
-- Pythia8 not found. Switching off pythia8 option
-- Looking for FFTW3
-- FFTW3 not found. Set [environment] variable FFTW_DIR to point to your FFTW3 installation
--                  Alternatively, you can also enable the option 'builtin_fftw3' to build FFTW3 internally'
--                  For the time being switching OFF 'fftw3' option
-- Looking for CFITSIO
-- Could NOT find CFITSIO (missing: CFITSIO_LIBRARY CFITSIO_INCLUDE_DIR)
-- CFITSIO not found. You can enable the option 'builtin_cfitsio' to build the library internally'
--                    For the time being switching off 'fitsio' option
-- Could NOT find GFAL (missing: GFAL_INCLUDE_DIR SRM_IFCE_INCLUDE_DIR GFAL_LIBRARY)
-- GFAL library not found. Set variable GFAL_DIR to point to your gfal installation
                      and the variable SRM_IFCE_DIR to the srm_ifce installation
-- For the time being switching OFF 'gfal' option
-- Could NOT find FTGL (missing: FTGL_INCLUDE_DIR FTGL_LIBRARY)
-- ftgl library not found. Set variable FTGL_ROOT_DIR to point to your installation
-- For the time being switching ON 'builtin_ftgl' option
-- Cannot select cudnn without selecting cuda or tmva-gpu. Option is ignored
-- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Building LLVM in 'Release' mode.
-- The ASM compiler identification is MSVC
-- Found assembler: D:/Program_Files/Visual Studio 2019/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x86/cl.exe
-- Looking for backtrace
-- Looking for backtrace - not found
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- LLVM host triple: i686-pc-win32
-- LLVM default target triple: i686-pc-win32
-- Found PythonInterp: D:/Program_Files/Python38_32/python.exe (found version "3.8.4")
-- Constructing LLVMBuild project information
-- LLVMHello ignored -- Loadable modules not supported on this platform.
-- Targeting X86
-- Targeting NVPTX
-- Clang version: 5.0.0
-- PrintFunctionNames ignored -- Loadable modules not supported on this platform.
-- AnnotateFunctions ignored -- Loadable modules not supported on this platform.
-- BugpointPasses ignored -- Loadable modules not supported on this platform.
-- Cling version (from VERSION file): ROOT_0.7~dev
-- Performing Test __result
-- Performing Test __result - Failed
-- Performing Test CXX_HAS_fno_rtti
-- Performing Test CXX_HAS_fno_rtti - Failed
-- Performing Test C_HAS_Wno_strict_overflow
-- Performing Test C_HAS_Wno_strict_overflow - Failed
-- Performing Test C_HAS_Wno_maybe_uninitialized
-- Performing Test C_HAS_Wno_maybe_uninitialized - Failed
-- Performing Test C_HAS_Wno_parentheses_equality
-- Performing Test C_HAS_Wno_parentheses_equality - Failed
-- Looking for m
-- Looking for m - not found
-- Performing Test CXX_HAS_fno_strict_aliasing
-- Performing Test CXX_HAS_fno_strict_aliasing - Failed
-- Performing Test CXX_HAS_Wno_parentheses_equality
-- Performing Test CXX_HAS_Wno_parentheses_equality - Failed
-- Performing Test CXX_HAS_Wno_cast_function_type
-- Performing Test CXX_HAS_Wno_cast_function_type - Failed
-- Performing Test CXX_HAS_Wno_deprecated_register
-- Performing Test CXX_HAS_Wno_deprecated_register - Failed
-- Performing Test CXX_HAS_Wno_register
-- Performing Test CXX_HAS_Wno_register - Failed
-- Performing Test found_setresuid
-- Performing Test found_setresuid - Failed
-- Performing Test found_stdstringview
-- Performing Test found_stdstringview - Failed
-- Performing Test found_stdexpstringview
-- Performing Test found_stdexpstringview - Failed
-- Performing Test found_stdapply
-- Performing Test found_stdapply - Failed
-- Performing Test found_stdinvoke
-- Performing Test found_stdinvoke - Success
-- Performing Test found_stdindexsequence
-- Performing Test found_stdindexsequence - Success
-- Performing Test found_attribute_always_inline
-- Performing Test found_attribute_always_inline - Failed
-- Performing Test has_found_attribute_noinline
-- Performing Test has_found_attribute_noinline - Failed
-- Enabled support for:  asimage builtin_afterimage builtin_clang builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_lz4 builtin_pcre builtin_xxhash clad exceptions gdml http mlp opengl pyroot pyroot_legacy webgui root7 shared sqlite ssl spectrum xml
-- Configuring done
-- Generating done
-- Build files have been written to: D:/root_build

I found no other errors during compilation, but there were many warnings. As follows:

“D:\root_build\ALL_BUILD.vcxproj”(默认目标) (1) ->
       “D:\root_build\core\dictgen\Dictgen.vcxproj”(默认目标) (15) ->
       (ClCompile 目标) ->
         D:\root_source\interpreter\llvm\src\include\llvm/Support/MathExtras.h(372,31): warning C4146: 一元负运算符应用 于无符号类型,结
       果仍为无符号类型 [D:\root_build\core\dictgen\Dictgen.vcxproj]
         D:\root_source\interpreter\llvm\src\tools\clang\include\clang/AST/Expr.h(4717,34): warning C4146: 一元负运算符 应用于无符号
       类型,结果仍为无符号类型 [D:\root_build\core\dictgen\Dictgen.vcxproj]


       “D:\root_build\ALL_BUILD.vcxproj”(默认目标) (1) ->
       “D:\root_build\graf2d\asimage\G__ASImage.vcxproj”(默认目标) (112) ->
       “D:\root_build\core\Core.vcxproj”(默认目标) (117) ->
       “D:\root_build\core\G__Core.vcxproj”(默认目标) (121) ->
       “D:\root_build\core\rootcling_stage1\rootcling_stage1.vcxproj”(默认目标) (126) ->
       (Link 目标) ->
         LINK : warning LNK4286: 符号“?gReadRules@ROOT@@3V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@
       std@@V?$list@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU
       ?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V
       ?$allocator@D@2@@std@@V12@@std@@@2@@std@@V?$allocator@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator
       @D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$C
       BV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@2@@2@U?$less@V?$basic_string@
       DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@
       @V?$allocator@D@2@@std@@V?$list@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less
       @V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$c
       har_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@V?$allocator@V?$map@V?$basic_string@DU?$char_traits@
       D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$al
       locator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@2@@2@@std@
       @@2@@std@@A (class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char
       > >,class std::list<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocat
       or<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::l
       ess<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocat
       or<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > cons
       t ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,class std::allo
       cator<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,cla
       ss std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std:
       :basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std:
       :pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::
       basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > > >,struct std::less<class st
       d::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct st
       d::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std
       ::list<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,cl
       ass std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std
       ::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std
       ::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std:
       :basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,class std::allocator<class s
       td::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic
       _string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string
       <char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class s
       td::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<
       char,struct std::char_traits<char>,class std::allocator<char> > > > > > > > > > ROOT::gReadRules)”(在“RConversion
       RuleParser.obj”中定义)已由“TClingUtils.obj”导入 [D:\root_build\core\rootcling_stage1\rootcling_stage1.vcxproj]
         LINK : warning LNK4217: 符号“?gReadRules@ROOT@@3V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@
       std@@V?$list@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU
       ?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V
       ?$allocator@D@2@@std@@V12@@std@@@2@@std@@V?$allocator@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator
       @D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$C
       BV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@2@@2@U?$less@V?$basic_string@
       DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@
       @V?$allocator@D@2@@std@@V?$list@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less
       @V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$c
       har_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@V?$allocator@V?$map@V?$basic_string@DU?$char_traits@
       D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$al
       locator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@2@@2@@std@
       @@2@@std@@A (class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char
       > >,class std::list<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocat
       or<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::l
       ess<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocat
       or<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > cons
       t ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,class std::allo
       cator<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,cla
       ss std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std:
       :basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std:
       :pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::
       basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > > >,struct std::less<class st
       d::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct st
       d::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std
       ::list<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,cl
       ass std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std
       ::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std
       ::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std:
       :basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,class std::allocator<class s
       td::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic
       _string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string
       <char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class s
       td::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<
       char,struct std::char_traits<char>,class std::allocator<char> > > > > > > > > > ROOT::gReadRules)”(在“ RConversio
       nRuleParser.obj”中定义)已由“rootcling_impl.obj”(函数“"bool __cdecl std::operator<<char,struct std::char_traits<char>,cl
       ass std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
        > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??
       $?MDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@
       0@0@Z)”中)导入 [D:\root_build\core\rootcling_stage1\rootcling_stage1.vcxproj]
         LINK : warning LNK4286: 符号“?gReadRawRules@ROOT@@3V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@
       2@@std@@V?$list@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string
       @DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std
       @@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@V?$allocator@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$alloca
       tor@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@
       $$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@2@@2@U?$less@V?$basic_stri
       ng@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@s
       td@@V?$allocator@D@2@@std@@V?$list@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$l
       ess@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU
       ?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@V?$allocator@V?$map@V?$basic_string@DU?$char_trai
       ts@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?
       $allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@2@@2@@s
       td@@@2@@std@@A (class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<c
       har> >,class std::list<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allo
       cator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std
       ::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allo
       cator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > c
       onst ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,class std::a
       llocator<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,
       class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class s
       td::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct s
       td::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class st
       d::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > > >,struct std::less<class
        std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct
        std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class
       std::list<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >
       ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class
       std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct
       std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class s
       td::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,class std::allocator<clas
       s std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::ba
       sic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_str
       ing<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<clas
       s std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_stri
       ng<char,struct std::char_traits<char>,class std::allocator<char> > > > > > > > > > ROOT::gReadRawRules)”(在“RConv
       ersionRuleParser.obj”中定义)已由“TClingUtils.obj”导入 [D:\root_build\core\rootcling_stage1\rootcling_stage1.vcxproj]
         LINK : warning LNK4217: 符号“?gReadRawRules@ROOT@@3V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@
       2@@std@@V?$list@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string
       @DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std
       @@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@V?$allocator@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$alloca
       tor@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@
       $$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@2@@2@U?$less@V?$basic_stri
       ng@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@s
       td@@V?$allocator@D@2@@std@@V?$list@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$l
       ess@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU
       ?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@V?$allocator@V?$map@V?$basic_string@DU?$char_trai
       ts@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?
       $allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@2@@2@@s
       td@@@2@@std@@A (class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<c
       har> >,class std::list<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allo
       cator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std
       ::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allo
       cator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > c
       onst ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,class std::a
       llocator<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,
       class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class s
       td::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct s
       td::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class st
       d::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > > >,struct std::less<class
        std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct
        std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class
       std::list<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >
       ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class
       std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct
       std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class s
       td::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,class std::allocator<clas
       s std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::ba
       sic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_str
       ing<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<clas
       s std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_stri
       ng<char,struct std::char_traits<char>,class std::allocator<char> > > > > > > > > > ROOT::gReadRawRules)”(在“ RCon
       versionRuleParser.obj”中定义)已由“rootcling_impl.obj”(函数“"bool __cdecl ParsePragmaLine(class std::basic_string<char,s
       truct std::char_traits<char>,class std::allocator<char> > const &,char const * * const,unsigned int *)" (?ParseP
       ragmaLine@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAPBDPAI@Z)”中)导入 [D:\root_build\c
       ore\rootcling_stage1\rootcling_stage1.vcxproj]


       “D:\root_build\ALL_BUILD.vcxproj”(默认目标) (1) ->
       “D:\root_build\graf2d\asimage\G__ASImage.vcxproj”(默认目标) (112) ->
       “D:\root_build\core\Core.vcxproj”(默认目标) (117) ->
       “D:\root_build\core\G__Core.vcxproj”(默认目标) (121) ->
       (ClCompile 目标) ->
         D:\root_build\include\TClassStreamer.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢
       失 [D:\root_build\core\G__Core.vcxproj]


       “D:\root_build\ALL_BUILD.vcxproj”(默认目标) (1) ->
       “D:\root_build\graf2d\asimage\G__ASImage.vcxproj”(默认目标) (112) ->
       “D:\root_build\graf2d\graf\Graf.vcxproj”(默认目标) (171) ->
       “D:\root_build\graf2d\graf\G__Graf.vcxproj”(默认目标) (176) ->
       “D:\root_build\hist\hist\Hist.vcxproj”(默认目标) (178) ->
       “D:\root_build\hist\hist\G__Hist.vcxproj”(默认目标) (183) ->
       “D:\root_build\io\io\RIO.vcxproj”(默认目标) (186) ->
       “D:\root_build\io\io\G__RIO.vcxproj”(默认目标) (189) ->
         D:\root_build\include\TClassStreamer.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢
       失 [D:\root_build\io\io\G__RIO.vcxproj]


       “D:\root_build\ALL_BUILD.vcxproj”(默认目标) (1) ->
       “D:\root_build\montecarlo\eg\G__EG.vcxproj”(默认目标) (175) ->
       “D:\root_build\math\mathcore\MathCore.vcxproj”(默认目标) (181) ->
       “D:\root_build\math\mathcore\G__MathCore.vcxproj”(默认目标) (185) ->
         D:\root_source\math\mathcore\inc\Math/GoFTest.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字 符。请将该文件保存为 Unicode
        格式以防止数据丢失 [D:\root_build\math\mathcore\G__MathCore.vcxproj]
         D:\root_source\math\mathcore\inc\Math/MixMaxEngine.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Un
       icode 格式以防止数据丢失 [D:\root_build\math\mathcore\G__MathCore.vcxproj]
         D:\root_source\math\mathcore\inc\TRandomGen.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符 。请将该文件保存为 Unicode 格
       式以防止数据丢失 [D:\root_build\math\mathcore\G__MathCore.vcxproj]


       “D:\root_build\ALL_BUILD.vcxproj”(默认目标) (1) ->
       “D:\root_build\hsimple.vcxproj”(默认目标) (298) ->
       (CustomBuild 目标) ->
         D:\Program_Files\Visual Studio 2019\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB600
       6: “cmd.exe”已退出,代码为 -1073741515。 [D:\root_build\hsimple.vcxproj]

No idea why it fails for you… You might try to build in Release mode to see if it makes any difference…

Hi, Bellenot
I guess the reason for my error is that Anaconda3 is installed. After uninstalling it, the “hsimple” project compiled and passed, but the following error occurred:

D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6132): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6133): error C2059: 语法错误:“{” [D:\root_build\graf2d
       \win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6133): error C2059: 语法错误:“,” [D:\root_build\graf2d
       \win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6134): error C2059: 语法错误:“,” [D:\root_build\graf2d
       \win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6135): error C2059: 语法错误:“,” [D:\root_build\graf2d
       \win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6136): error C2059: 语法错误:“,” [D:\root_build\graf2d
       \win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6137): error C2059: 语法错误:“,” [D:\root_build\graf2d
       \win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6138): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6139): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6140): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6141): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6142): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6143): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6144): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6146): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6147): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6148): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6149): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6150): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6151): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6152): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6153): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6154): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6155): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6156): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6157): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6158): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6159): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6160): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6161): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6162): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6163): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6164): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6165): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6166): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6167): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6168): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6169): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6170): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6171): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6172): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6173): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6174): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6175): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6176): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6177): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6178): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6179): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6180): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6181): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6182): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6183): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6184): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6185): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6192): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6207): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6213): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6214): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6215): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6216): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6217): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6218): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6219): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6220): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6221): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6222): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6223): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6224): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6225): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6226): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6227): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6228): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6229): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6230): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6231): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6232): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6233): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6234): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6235): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6236): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6237): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6238): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6239): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6240): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6241): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6242): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6243): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6244): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6245): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6246): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6247): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6248): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6249): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6250): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6251): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6252): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6253): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]
         D:\root_build\graf2d\win32gdk\gdk\src\glib\gunichartables.h(6254): error C2001: 常量中有换行符 [D:\root_build\graf2d\
       win32gdk\glib.vcxproj]

I compiled it in Release mode. Could you tell me how to fix those errors?
Thanks!

Never seen this kind of error… But it might be due to some system locale settings. Did you edit (or open) this file? Can you make sure it has not be modified (i.e. it is equivalent to the original source tar file)?

Yes, I have not modified any source files and I try to re-download the source file and recompile it.

I tried to convert the encoding of the “gunichartables.h” file to “UTF-8 with BOM”, and all files were compiled and passed.

Good news!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.