TAGGED: compiler, fortran, udf-compiler-problem, windows-compilers
-
-
June 27, 2025 at 7:07 pm
Amrith Mariappan
SubscriberHi all,
I’ve been trying to use the ifort24/ifx compiler for a static linking UDF approach in ANSYS LS-DYNA. When I compile with ifort24, I get linker errors that seem related to a version mismatch, likely because the UserMat package libraries were built with ifort19.
My university IT department is having trouble locating ifort19, and I haven’t been able to find a UserMat package library built with ifort24 or ifx. I’m wondering if anyone can help me resolve this error or suggest if it’s possible to use ifort24 or ifx with libraries built on ifort19.
I’ve attached the linker error I’m getting during the make process for reference.
Thanks,
Amrithifort: remark #10448: Intel(R) Fortran Compiler Classic (ifort) is now deprecated and will be discontinued late 2024. Intel recommends that customers transition now to using the LLVM-based Intel(R) Fortran Compiler (ifx) for continued Windows* and Linux* support, new language support, new language features, and optimizations. Use '/Qdiag-disable:10448' to disable this message.ipo: warning #11082: libansys.lib(zutil.obj): locally defined symbol __imp_free importedipo: warning #11082: libansys.lib(zutil.obj): locally defined symbol __imp_malloc importedMicrosoft (R) Incremental Linker Version 14.44.35211.0Copyright (C) Microsoft Corporation. All rights reserved.Â-out:mppdyna.exe-subsystem:console-stack:1610612736-force/nodefaultlib:msvcrt.lib-ignore:4217-ignore:4049/nodefaultlib:libifcoremd.liblibdyna.liblibansys.liblibcmt.libgdi32.libcomdlg32.libUser32.libcomctl32.libws2_32.libadvapi32.libnetapi32.libshell32.libiphlpapi.libmkl_intel_ilp64.libmkl_sequential.libmkl_core.lib"/libpath:c:\Program Files (x86)\IntelSWTools\MPI\2019.6.166\intel64\lib"impi.libcouple2other_user.objdyn21cnt.objdyn21ueos.objdyn21umats.objdyn21ushl.objdyn21utan.objdyn21.objdyn21tumat.objdyn21umatc.objdyn21umatv.objuserinterface.objdyn21usld.objdynrfn_user.objdyn21umat.objinit_dyn21.objdyn21em.objdyn21icfd.objdyn21.obj : warning LNK4006: UMAT41 already defined in dyn21umats.obj; second definition ignored  Creating library mppdyna.lib and object mppdyna.expdyn21.obj : error LNK2019: unresolved external symbol VALOCR referenced in function UTHMAT01mppdyna.exe : warning LNK4088: image being generated due to /FORCE option; image may not rundyn21.obj : fatal error LNK1223: invalid or corrupt file: file contains invalid .pdata contributionsNMAKE : fatal error U1077: 'ifort' : return code '0x4c7'Stop.ÂMakefile Content:#Â# Makefile for building mppdyna Windows 64 bits# for 'Intel MPI'# Flags for single and double precisionÂÂFC = ifortMPPS =ÂMPPD = -DEXTENDED -DUSES_CXX -DAUTODOUBLE -4R8 -4I8ÂTARGET = mppdyna.exeFLAGS = /c /traceback /assume:byterecl /QxSSE2 -fp:precise /Quppercase \/fpp /DIA64 /DMSTI /DAMD64 /DWINX64 /DNET_SECURITY /DMPP /DMPPWIN \/w /WB /DINTEL /DNET_SECURITY /D__VC__ÂÂÂMPICH_LIB =/libpath:"c:\Program Files (x86)\IntelSWTools\MPI\2019.6.166\intel64\lib" \impi.libÂMPICH_INC_PATH = "c:\Program Files (x86)\IntelSWTools\MPI\2019.6.166\intel64\include"FFLAGS = $(FLAGS) -I. -I$(MPICH_INC_PATH) $(MPPD)LINKLIBS = libdyna.lib libansys.lib libcmt.lib gdi32.lib comdlg32.lib User32.lib \comctl32.lib ws2_32.lib advapi32.lib netapi32.lib shell32.lib iphlpapi.lib \mkl_intel_ilp64.lib mkl_sequential.lib mkl_core.lib $(MPICH_LIB)ÂOBJS= couple2other_user.obj dyn21cnt.obj dyn21ueos.obj dyn21umats.obj dyn21ushl.obj \   dyn21utan.obj dyn21.obj dyn21tumat.obj dyn21umatc.obj dyn21umatv.obj userinterface.obj \   dyn21usld.obj dynrfn_user.obj dyn21umat.obj init_dyn21.obj dyn21em.obj dyn21icfd.objÂ$(TARGET): $(OBJS)$(FC) -w -q -o $(TARGET) $(OBJS) -F:1610612736 -link -force /nodefaultlib:msvcrt.lib \-ignore:4217 -ignore:4049 /nodefaultlib:libifcoremd.lib $(LINKLIBS)Â$(OBJS) :nhisparm.incÂ.F.obj: Â $(FC) $(FFLAGS) $*.F.F90.obj: Â $(FC) $(FFLAGS) $*.F90Âclean:-if exist *.obj erase *.obj# -if exist del $(OBJS)-if exist $(TARGET) erase $(TARGET)ÂÂÂ
-
- You must be logged in to reply to this topic.
-
3362
-
1042
-
1030
-
871
-
831
© 2025 Copyright ANSYS, Inc. All rights reserved.