Dear Carlos, Thanks for highlighting this and my apologies for forgetting to point this out in the advice I sent round the other day. This is a known issue and there is a fix in the current master branch of the Nektar++ repository, however it was resolved after the 5.0.0 release so isn't in the 5.0.0 source. I guess you are using the v5.0.0 source from https://www.nektar.info/downloads/? The _set_output_format function is not found because it is no longer present in recent versions of Visual Studio (https://docs.microsoft.com/en-us/cpp/c-runtime-library/set-output-format?vie...). I've prepared and attached a small patch to add the changes into the v5.0.0 source so you can apply this and it should resolve the problem. Another option is to clone the Nektar++ source from gitlab and build the master branch where this issue shouldn't be present. If you'd like to apply the patch, save the attached file into your nektar++-5.0.0 directory and then run: patch -p1 -i nektarpp5-output_format.patch If for any reason the patch command is not available on your system, I believe it's included with Git Bash (https://gitforwindows.org/) so you can install that and the command should then be available from the terminal. Hope that helps, let us know if you are able to build successfully with this configuration or if you experience any further issues. Thanks, Jeremy On 3 Mar 2020, at 19:48, CARLOS LOZANO RODRIGUEZ <lozanorc@inta.es> wrote:
Dear all, I am trying to build Nektar 5.0.0 on windows 10. I am using vs 2019 and I have installed boost from boost_1_72_0-msvc-14.2-64.exe following advice from Jeremy Cohen https://mailman.ic.ac.uk/mailman/htdig/nektar-users/2020-March/001320.html I build scripts for Visual Studio 16 2019 and x64. cmake seems to correctly locate boost, the c++ compilers and everything else (configuration and generation run smoothly). I then issue msbuild INSTALL.vcxproj /p:Configuration=Release After a lenghty process, I get 7910 warnings and the following 6 errors (I apologize for it being in Spanish):
"C:\nektar++-5.0.0\builds\INSTALL.vcxproj" (destino predeterminado) (1) -> "C:\nektar++-5.0.0\builds\ALL_BUILD.vcxproj" (destino predeterminado) (3) -> "C:\nektar++-5.0.0\builds\solvers\CardiacEPSolver\CardiacEPSolver-obj.vcxproj" (destino predeterminado) (4) -> "C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj" (destino predeterminado) (5) -> (ClCompile destino) -> C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(108,46): error C2065: '_TWO_DIGIT_EXPONENT': identificado r no declarado [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(108,27): error C3861: '_set_output_format': no se encontr ó el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(111,5): error C3861: '_set_output_format': no se encontró el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(169,46): error C2065: '_TWO_DIGIT_EXPONENT': identificado r no declarado [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(169,27): error C3861: '_set_output_format': no se encontr ó el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj] C:\nektar++-5.0.0\library\SolverUtils\Core\CouplingFile.cpp(171,5): error C3861: '_set_output_format': no se encontró el identificador [C:\nektar++-5.0.0\builds\library\SolverUtils\SolverUtils.vcxproj]
If I issue msbuild INSTALL.vcxproj /p:Configuration=Release again, I get just 10 warnings and still the same 6 errors
any advice? Thanks a lot
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Carlos Lozano Rodríguez Área de Aerodinámica Teórica y Computacional / CFD Branch Instituto Nacional de Técnica Aeroespacial / National Institute for Aerospace Technology (INTA) Carretera Ajalvir km. 4 28850 Torrejón de Ardoz, Spain tel: +34 91 520 1908 e-mail: lozanorc@inta.es web: http://scholar.google.co.uk/citations?user=mrl2XhQAAAAJ _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users