compiling error
When I want to generate DualSPHysics4.2.exe in VS2015, the errors are:
1>------ 已启动生成: 项目: ZERO_CHECK, 配置: Debug x64 ------
1> Checking Build System
1> CMake does not need to re-run because F:/DualSPHysics_v4.2/src/source/build/CMakeFiles/generate.stamp is up-to-date.
2>------ 已启动生成: 项目: DualSPHysics4.2, 配置: Debug x64 ------
3>------ 已启动生成: 项目: DualSPHysics4.2CPU, 配置: Debug x64 ------
2> Building NVCC (Device) object CMakeFiles/DualSPHysics4.2.dir/Debug/DualSPHysics4.2_generated_JCellDivGpu_ker.cu.obj
3> Building Custom Rule F:/DualSPHysics_v4.2/src/source/CMakeLists.txt
3> CMake does not need to re-run because F:/DualSPHysics_v4.2/src/source/build/CMakeFiles/generate.stamp is up-to-date.
3> JXml.cpp
3> tinystr.cpp
3> tinyxml.cpp
3> tinyxmlerror.cpp
3> tinyxmlparser.cpp
3> JMotion.cpp
3> JMotionList.cpp
3> JMotionMov.cpp
3> JMotionObj.cpp
2> JCellDivGpu_ker.cu
3> JMotionPos.cpp
2>cl : 锟斤拷锟斤拷锟斤拷 warning D9025: 锟斤拷锟斤拷锟斤拷写锟斤拷/Od锟斤拷(锟矫★拷/O2锟斤拷)
2>cl : 锟斤拷锟斤拷锟斤拷 error D8016: 锟斤拷/RTC1锟斤拷锟酵★拷/O2锟斤拷锟斤拷锟斤拷锟斤拷选锟筋不锟斤拷锟斤拷
2> CMake Error at DualSPHysics4.2_generated_JCellDivGpu_ker.cu.obj.Debug.cmake:219 (message):
2> Error generating
2> F:/DualSPHysics_v4.2/src/source/build/CMakeFiles/DualSPHysics4.2.dir//Debug/DualSPHysics4.2_generated_JCellDivGpu_ker.cu.obj
2>
2>
3> JSphMotion.cpp
3> Functions.cpp
3> FunctionsMath.cpp
3> JBinaryData.cpp
3> JException.cpp
3> JLog2.cpp
3> JMeanValues.cpp
3> JObject.cpp
3> JRadixSort.cpp
3> JRangeFilter.cpp
3> 正在生成代码...
3> 正在编译...
3> JReadDatafile.cpp
3> JSaveCsv2.cpp
3> JTimeControl.cpp
3> randomc.cpp
3> JDsphConfig.cpp
3> JPartDataBi4.cpp
3> JPartDataHead.cpp
3> JPartFloatBi4.cpp
3> JPartOutBi4Save.cpp
3> JSpaceCtes.cpp
3> JSpaceEParms.cpp
3> JSpaceParts.cpp
3> JSpaceProperties.cpp
3> JArraysCpu.cpp
3> JCellDivCpu.cpp
3> JCfgRun.cpp
3> JDamping.cpp
3> JGaugeItem.cpp
3> JGaugeSystem.cpp
3> JPartsOut.cpp
3> 正在生成代码...
3> 正在编译...
3> JSaveDt.cpp
3> JSph.cpp
3> JSphAccInput.cpp
3> JSphCpu.cpp
3> JSphInitialize.cpp
3> JSphMk.cpp
3> JSphDtFixed.cpp
3> JSphVisco.cpp
3> JTimeOut.cpp
3> JWaveSpectrumGpu.cpp
3> main.cpp
3> JCellDivCpuSingle.cpp
3> JPartsLoad4.cpp
3> JSphCpuSingle.cpp
3>F:\DualSPHysics_v4.2\src\source\JSphCpuSingle.cpp : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
3> 正在生成代码...
3> JFormatFiles2_x64_v140_Release.lib(JFormatFiles2.obj) : 找到 MSIL .netmodule 或使用 /GL 编译的模块;正在使用 /LTCG 重新启动链接;将 /LTCG 添加到链接命令行以改进链接器性能
3>LINK : warning LNK4075: 忽略“/INCREMENTAL”(由于“/LTCG”规范)
3>JFormatFiles2_x64_v140_Release.lib(JFormatFiles2.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JFormatFiles2.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkArray.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkArray.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkPolyData.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkPolyData.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkPolygonal.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkPolygonal.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkFieldsData.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkFieldsData.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveGen.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveGen.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWavePaddles.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWavePaddles.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveRegular.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveRegular.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWavePaddle.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWavePaddle.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveSpectrum.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveSpectrum.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveAwasZsurf.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveAwasZsurf.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveFile.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveFile.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JReadCsv.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JReadCsv.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>LINK : warning LNK4098: 默认库“LIBCMT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
3>F:\DualSPHysics_v4.2\src\source\build\Debug\DualSPHysics4.2CPU.exe : fatal error LNK1319: 检测到 26 个不匹配项
4>------ 已启动生成: 项目: ALL_BUILD, 配置: Debug x64 ------
4> Building Custom Rule F:/DualSPHysics_v4.2/src/source/CMakeLists.txt
4> CMake does not need to re-run because F:/DualSPHysics_v4.2/src/source/build/CMakeFiles/generate.stamp is up-to-date.
========== 生成: 成功 2 个,失败 2 个,最新 0 个,跳过 0 个 ==========
1>------ 已启动生成: 项目: ZERO_CHECK, 配置: Debug x64 ------
1> Checking Build System
1> CMake does not need to re-run because F:/DualSPHysics_v4.2/src/source/build/CMakeFiles/generate.stamp is up-to-date.
2>------ 已启动生成: 项目: DualSPHysics4.2, 配置: Debug x64 ------
3>------ 已启动生成: 项目: DualSPHysics4.2CPU, 配置: Debug x64 ------
2> Building NVCC (Device) object CMakeFiles/DualSPHysics4.2.dir/Debug/DualSPHysics4.2_generated_JCellDivGpu_ker.cu.obj
3> Building Custom Rule F:/DualSPHysics_v4.2/src/source/CMakeLists.txt
3> CMake does not need to re-run because F:/DualSPHysics_v4.2/src/source/build/CMakeFiles/generate.stamp is up-to-date.
3> JXml.cpp
3> tinystr.cpp
3> tinyxml.cpp
3> tinyxmlerror.cpp
3> tinyxmlparser.cpp
3> JMotion.cpp
3> JMotionList.cpp
3> JMotionMov.cpp
3> JMotionObj.cpp
2> JCellDivGpu_ker.cu
3> JMotionPos.cpp
2>cl : 锟斤拷锟斤拷锟斤拷 warning D9025: 锟斤拷锟斤拷锟斤拷写锟斤拷/Od锟斤拷(锟矫★拷/O2锟斤拷)
2>cl : 锟斤拷锟斤拷锟斤拷 error D8016: 锟斤拷/RTC1锟斤拷锟酵★拷/O2锟斤拷锟斤拷锟斤拷锟斤拷选锟筋不锟斤拷锟斤拷
2> CMake Error at DualSPHysics4.2_generated_JCellDivGpu_ker.cu.obj.Debug.cmake:219 (message):
2> Error generating
2> F:/DualSPHysics_v4.2/src/source/build/CMakeFiles/DualSPHysics4.2.dir//Debug/DualSPHysics4.2_generated_JCellDivGpu_ker.cu.obj
2>
2>
3> JSphMotion.cpp
3> Functions.cpp
3> FunctionsMath.cpp
3> JBinaryData.cpp
3> JException.cpp
3> JLog2.cpp
3> JMeanValues.cpp
3> JObject.cpp
3> JRadixSort.cpp
3> JRangeFilter.cpp
3> 正在生成代码...
3> 正在编译...
3> JReadDatafile.cpp
3> JSaveCsv2.cpp
3> JTimeControl.cpp
3> randomc.cpp
3> JDsphConfig.cpp
3> JPartDataBi4.cpp
3> JPartDataHead.cpp
3> JPartFloatBi4.cpp
3> JPartOutBi4Save.cpp
3> JSpaceCtes.cpp
3> JSpaceEParms.cpp
3> JSpaceParts.cpp
3> JSpaceProperties.cpp
3> JArraysCpu.cpp
3> JCellDivCpu.cpp
3> JCfgRun.cpp
3> JDamping.cpp
3> JGaugeItem.cpp
3> JGaugeSystem.cpp
3> JPartsOut.cpp
3> 正在生成代码...
3> 正在编译...
3> JSaveDt.cpp
3> JSph.cpp
3> JSphAccInput.cpp
3> JSphCpu.cpp
3> JSphInitialize.cpp
3> JSphMk.cpp
3> JSphDtFixed.cpp
3> JSphVisco.cpp
3> JTimeOut.cpp
3> JWaveSpectrumGpu.cpp
3> main.cpp
3> JCellDivCpuSingle.cpp
3> JPartsLoad4.cpp
3> JSphCpuSingle.cpp
3>F:\DualSPHysics_v4.2\src\source\JSphCpuSingle.cpp : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
3> 正在生成代码...
3> JFormatFiles2_x64_v140_Release.lib(JFormatFiles2.obj) : 找到 MSIL .netmodule 或使用 /GL 编译的模块;正在使用 /LTCG 重新启动链接;将 /LTCG 添加到链接命令行以改进链接器性能
3>LINK : warning LNK4075: 忽略“/INCREMENTAL”(由于“/LTCG”规范)
3>JFormatFiles2_x64_v140_Release.lib(JFormatFiles2.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JFormatFiles2.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkArray.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkArray.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkPolyData.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkPolyData.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkPolygonal.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkPolygonal.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkFieldsData.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JFormatFiles2_x64_v140_Release.lib(JVtkFieldsData.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveGen.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveGen.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWavePaddles.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWavePaddles.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveRegular.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveRegular.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWavePaddle.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWavePaddle.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveSpectrum.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveSpectrum.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveAwasZsurf.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveAwasZsurf.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveFile.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JWaveFile.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JReadCsv.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(JXml.obj 中)
3>JWaveGen_x64_v140_Release.lib(JReadCsv.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MT_StaticRelease”不匹配值“MTd_StaticDebug”(JXml.obj 中)
3>LINK : warning LNK4098: 默认库“LIBCMT”与其他库的使用冲突;请使用 /NODEFAULTLIB:library
3>F:\DualSPHysics_v4.2\src\source\build\Debug\DualSPHysics4.2CPU.exe : fatal error LNK1319: 检测到 26 个不匹配项
4>------ 已启动生成: 项目: ALL_BUILD, 配置: Debug x64 ------
4> Building Custom Rule F:/DualSPHysics_v4.2/src/source/CMakeLists.txt
4> CMake does not need to re-run because F:/DualSPHysics_v4.2/src/source/build/CMakeFiles/generate.stamp is up-to-date.
========== 生成: 成功 2 个,失败 2 个,最新 0 个,跳过 0 个 ==========