Hello. I am having trouble compiling a post-process subroutine with 'abaqus make' command. I am using Abaqus 2020 and Intel oneAPI 2021 compilers. I used the guide below to link Fortran and Abaqus, and there seems to be no problem about running simulations with user subroutines. 'abaqus info=system' gives no errors.
However, when I use abaqus make to compile postprocessing subroutines (fortran and c++) I get some errors. Previously, I used the same codes in linux with Abaqus 2020 and Intel Parallel Studio 2018, and it was working. Now, I need to use Windows and Intel oneAPI because Intel is not renewing license for older Parallel Studio XE. For post-processing, first I compile 'sdvfromfil.f' and then link 'sdvfromfil.exe' with a c++ code 'sdvtoodb.cpp'. When I compile c++ code, I get following error,
It says sdvfromfil.exe is invalid or corrupt. When I compile sdvfromfil.f before this step something strange happens,
sdvfromfil.f is first compiled with Intel Fortran then again with Intel C++. I suspect this might be the reason for corrupt file. Is this normal? What should I do? Any help is appreciated.
---EDIT---
Below are the compiler and linker option that work on linux.
cppCmd = "icpc" compile_cpp = [cppCmd, '-c', '-fPIC', '-w', '-Wno-deprecated', '-DTYPENAME=typename', '-D_LINUX_SOURCE', '-DABQ_LINUX', '-DABQ_LNX86_64', '-DSMA_GNUC', '-DFOR_TRAIL', '-DHAS_BOOL', '-DASSERT_ENABLED', '-D_BSD_TYPES', '-D_BSD_SOURCE', '-D_GNU_SOURCE', '-D_POSIX_SOURCE', '-D_XOPEN_SOURCE_EXTENDED', '-D_XOPEN_SOURCE', '-DHAVE_OPENGL', '-DHKS_OPEN_GL', '-DGL_GLEXT_PROTOTYPES', '-DMULTI_THREADING_ENABLED', '-D_REENTRANT', '-DABQ_MPI_SUPPORT', '-DBIT64', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '%P', '-I%I', '-I\${ABA_HOME}', '-std=c++11' ] link_exe = [cppCmd, '-fPIC', '-Wl,-Bdynamic', '-Wl,--add-needed', '-o', '%J', '%F', '%M', '%L', '%B', '%O', 'sdvfromfil_V2.o']
I am trying to do the equivalent of this in Windows, my current flags are;
compile_cpp=['icl', '/c', '/W0', '/MD', '/TP', '/EHsc', '/DNDEBUG', '/DWIN32', '/DTP_IP', '/D_CONSOLE', '/DNTI', '/DFLT_LIC', '/DOL_DOC', '/D__LIB__', '/DHKS_NT', '/D_WINDOWS_SOURCE', '/DFAR=', '/D_WINDOWS', '/DABQ_WIN86_64', '%P', # '/O1', # <-- Optimization # '/Zi', # <-- Debug symbols '/I%I', '/I'+abaHomeInc,'/Qstd:c++11'] link_exe=['LINK', '/nologo', '/INCREMENTAL:NO', '/subsystem:console', '/machine:AMD64', '/STACK:20000000', '/NODEFAULTLIB:LIBC.LIB', '/NODEFAULTLIB:LIBCMT.LIB', '/DEFAULTLIB:OLDNAMES.LIB', '/DEFAULTLIB:LIBIFCOREMD.LIB', '/DEFAULTLIB:LIBIFPORTMD.LIB', '/DEFAULTLIB:LIBMMD.LIB', '/DEFAULTLIB:kernel32.lib', '/DEFAULTLIB:user32.lib', '/DEFAULTLIB:advapi32.lib', '/FIXED:NO', '/LARGEADDRESSAWARE', # '/debug', # <-- Debugging '/out:%J', '%F', '%M', '%L', '%B', '%O', 'oldnames.lib', 'user32.lib', 'ws2_32.lib', 'netapi32.lib', 'advapi32.lib', 'msvcrt.lib', 'vcruntime.lib', 'ucrt.lib', 'sdvfromfil_V2.exe']