General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Fatal error in compiling the Usermat Subroutine

    • pourrezamh
      Subscriber

      Hello,

      I am trying to compile the Usermat subroutine provided by ANSYS for Bilinear Isotropic Hardening. I have installed Visual Studio 2019 and the OneAPI HPC Toolkit 2025 for the Fortran compiler. However, I am unable to compile my Usermat due to the following error:

      LINK : fatal error LNK1104: cannot open file 'ifconsol.lib'

      I have tried several solutions found online to resolve this issue, but unfortunately, none have worked so far.

      Your help is appreciated.

    • Erik Kostson
      Ansys Employee

       

      The error message “LINK : fatal error LNK1104:  “ifconsol.lib” .” indicates that the linker cannot find the ifconsol.lib file.
      This issue is commonly encountered when the Intel Fortran library directory is not correctly specified in your Visual Studio project settings.
       
      Access the link below which provides some steps to resolve this issue:
      https://community.intel.com/t5/Intel-Fortran-Compiler/Error-LNK1104-Cannot-open-file-ifconsol-lib/m-p/820786

      That is all advice we (Ansys employees) can give on Fortran Subroutines in general (we do not troubleshoot or debug), but perhaps other forum members can chime in and help more perhaps if needed.

      All the best

      Erik

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.