KratosMultiphysics / Kratos

Kratos Multiphysics (A.K.A Kratos) is a framework for building parallel multi-disciplinary simulation software. Modularity, extensibility and HPC are the main objectives. Kratos has BSD license and is written in C++ with extensive Python interface.
https://kratosmultiphysics.github.io/Kratos/
Other
1.05k stars 246 forks source link

[SMA] Compilation error in Win #7976

Closed AlejandroCornejo closed 3 years ago

AlejandroCornejo commented 3 years ago

Description I've just updated the master and it does not compile because of the StructuralMechApp.

Error message:

D:\KRATOS_MULTIPHYSICS\Kratos\applications\StructuralMechanicsApplication\custom_response_functions\adjoint_e lements\adjoint_finite_difference_truss_element_3D2N.cpp(91): error C3861: '_Pragma': no se encontró el ident ificador [D:\KRATOS_MULTIPHYSICS\Kratos\build\Release\applications\StructuralMechanicsApplication\KratosStruc turalMechanicsCore.vcxproj]

D:\KRATOS_MULTIPHYSICS\Kratos\applications\StructuralMechanicsApplication\custom_elements\z_strain_driven_2p5 _small_displacement.cpp(164): error C3861: '_Pragma': no se encontró el identificador [D:\KRATOS_MULTIPHYSICS \Kratos\build\Release\applications\StructuralMechanicsApplication\KratosStructuralMechanicsCore.vcxproj]

D:\KRATOS_MULTIPHYSICS\Kratos\applications\StructuralMechanicsApplication\custom_elements\truss_element_3D2N. cpp(453): error C3861: '_Pragma': no se encontró el identificador [D:\KRATOS_MULTIPHYSICS\Kratos\build\Releas e\applications\StructuralMechanicsApplication\KratosStructuralMechanicsCore.vcxproj]

D:\KRATOS_MULTIPHYSICS\Kratos\applications\StructuralMechanicsApplication\custom_elements\solid_shell_element _sprism_3D6N.cpp(1365): error C3861: '_Pragma': no se encontró el identificador [D:\KRATOS_MULTIPHYSICS\Krato s\build\Release\applications\StructuralMechanicsApplication\KratosStructuralMechanicsCore.vcxproj]

And in some other places... @KratosMultiphysics/structural-mechanics

AlejandroCornejo commented 3 years ago

Solved in [Core] using msvc specific version of pragma for backward compatibility #7977