-
-
March 12, 2024 at 9:55 amalinalarinSubscriber
Hi all,
I try to compile UDF for the first time (usually I was using interpret option). I installed Visual Studio, change environmental varibles, I am opening Fluent from visual comand promt. The UDF file is in the same directory as the case file.Â
But when I try to compile the UDF I get the following error message:
LINK : fatal error LNK1181: cannot open input file 'SLIP2.C'
NMAKE : fatal error U1077: 'link /Libpath:"C:\PROGRA~1\ANSYSI~1\v222\fluent"\fluent22.2.0\win64\3ddp_node /Libpath:"C:\PROGRA~1\ANSYSI~1\v222\fluent"\fluent22.2.0\multiport\win64\mpi\shared /dll /out:libudf.dll udf_names.obj SLIP2.C mport.lib fl_mpi2220.lib ' : return code '0x49d'
Thank you in advance,
Alina
Â
-
March 12, 2024 at 12:33 pmRobForum Moderator
You may have missed a setting somewhere. I tend to use the built in compiler as it avoids needing to install anything else.Â
-
March 12, 2024 at 12:39 pmalinalarinSubscriber
I tried built in compiller and recieved following error:Â
Copied C:\Cell100_files\dp0\FFF-6\Fluent/C:\Cell100_files\dp0\FFF-6\Fluent\SLIP2.C to libudf\src
(system "copy "C:\PROGRA~1\ANSYSI~1\v222\fluent"\fluent22.2.0\src\udf\sconstruct.udf "libudf\win64\3ddp_host\SConstruct" ")
1 file(s) copied.
(system "copy "C:\PROGRA~1\ANSYSI~1\v222\fluent"\fluent22.2.0\src\udf\scons_test.bat "libudf\win64\3ddp_host\scons_test.bat" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\3ddp_host")
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Cell100_files\dp0\FFF-6\Fluent\libudf\win64\3ddp_host\SConstruct", line 8, in
Â
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Cell100_files\dp0\FFF-6\Fluent\libudf\win64\3ddp_host\SConstruct", line 18, in
Compiler used is "C:\PROGRA~1\ANSYSI~1\v222\fluent"\ntbin\clang\bin\clang-cl
Linker used is "C:\PROGRA~1\ANSYSI~1\v222\fluent"\ntbin\clang\bin\lld-link
Â
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Cell100_files\dp0\FFF-6\Fluent\libudf\win64\3ddp_host\SConstruct", line 152, in
Copy("C:\Cell100_files\dp0\FFF-6\Fluent\libudf\win64\3ddp_host\resolve.exe", "C:\PROGRA~1\ANSYSI~1\v222\fluent\ntbin\win64\resolve.exe")
c_sources ['SLIP2.C', 'udf_names.c']
c_sources_ []
(system "copy "C:\PROGRA~1\ANSYSI~1\v222\fluent"\fluent22.2.0\src\udf\sconstruct.udf "libudf\win64\3ddp_node\SConstruct" ")
1 file(s) copied.
(system "copy "C:\PROGRA~1\ANSYSI~1\v222\fluent"\fluent22.2.0\src\udf\scons_test.bat "libudf\win64\3ddp_node\scons_test.bat" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\3ddp_node")
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Cell100_files\dp0\FFF-6\Fluent\libudf\win64\3ddp_node\SConstruct", line 8, in
Â
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Cell100_files\dp0\FFF-6\Fluent\libudf\win64\3ddp_node\SConstruct", line 18, in
Compiler used is "C:\PROGRA~1\ANSYSI~1\v222\fluent"\ntbin\clang\bin\clang-cl
Linker used is "C:\PROGRA~1\ANSYSI~1\v222\fluent"\ntbin\clang\bin\lld-link
Â
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\Cell100_files\dp0\FFF-6\Fluent\libudf\win64\3ddp_node\SConstruct", line 152, in
Copy("C:\Cell100_files\dp0\FFF-6\Fluent\libudf\win64\3ddp_node\resolve.exe", "C:\PROGRA~1\ANSYSI~1\v222\fluent\ntbin\win64\resolve.exe")
c_sources ['SLIP2.C', 'udf_names.c']
c_sources_ []
Â
Done.
Â
-
-
March 12, 2024 at 12:47 pmRobForum Moderator
Can you try Fluent standalone and compile from there? No need to load a case file.Â
-
March 12, 2024 at 1:03 pmalinalarinSubscriber
Thank you Rob!
I tried. That is what I receive:> Copied C:\udf/SLIP2.C to libudf\src
(system "copy "C:\PROGRA~1\ANSYSI~1\v222\fluent"\fluent22.2.0\src\udf\sconstruct.udf "libudf\win64\3ddp_host\SConstruct" ")
1 file(s) copied.
(system "copy "C:\PROGRA~1\ANSYSI~1\v222\fluent"\fluent22.2.0\src\udf\scons_test.bat "libudf\win64\3ddp_host\scons_test.bat" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\3ddp_host")
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\udf\libudf\win64\3ddp_host\SConstruct", line 8, in
Â
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\udf\libudf\win64\3ddp_host\SConstruct", line 18, in
Compiler used is "C:\PROGRA~1\ANSYSI~1\v222\fluent"\ntbin\clang\bin\clang-cl
Linker used is "C:\PROGRA~1\ANSYSI~1\v222\fluent"\ntbin\clang\bin\lld-link
Â
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\udf\libudf\win64\3ddp_host\SConstruct", line 152, in
Copy("C:\udf\libudf\win64\3ddp_host\resolve.exe", "C:\PROGRA~1\ANSYSI~1\v222\fluent\ntbin\win64\resolve.exe")
c_sources ['SLIP2.C', 'udf_names.c']
c_sources_ []
In file included from udf_names.c:3:
C:\PROGRA~1\ANSYSI~1\v222\fluent\fluent22.2.0\src\udf\udf.h(80,12): fatal error: 'ud_io1.h' file not found
# include "ud_io1.h"
^~~~~~~~~~
1 error generated.
scons: *** [udf_names.obj] Error 1
(system "copy "C:\PROGRA~1\ANSYSI~1\v222\fluent"\fluent22.2.0\src\udf\sconstruct.udf "libudf\win64\3ddp_node\SConstruct" ")
1 file(s) copied.
(system "copy "C:\PROGRA~1\ANSYSI~1\v222\fluent"\fluent22.2.0\src\udf\scons_test.bat "libudf\win64\3ddp_node\scons_test.bat" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\3ddp_node")
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\udf\libudf\win64\3ddp_node\SConstruct", line 8, in
Â
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\udf\libudf\win64\3ddp_node\SConstruct", line 18, in
Compiler used is "C:\PROGRA~1\ANSYSI~1\v222\fluent"\ntbin\clang\bin\clang-cl
Linker used is "C:\PROGRA~1\ANSYSI~1\v222\fluent"\ntbin\clang\bin\lld-link
Â
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\udf\libudf\win64\3ddp_node\SConstruct", line 152, in
Copy("C:\udf\libudf\win64\3ddp_node\resolve.exe", "C:\PROGRA~1\ANSYSI~1\v222\fluent\ntbin\win64\resolve.exe")
c_sources ['SLIP2.C', 'udf_names.c']
c_sources_ []
In file included from udf_names.c:3:
C:\PROGRA~1\ANSYSI~1\v222\fluent\fluent22.2.0\src\udf\udf.h(80,12): fatal error: 'ud_io1.h' file not found
# include "ud_io1.h"
^~~~~~~~~~
1 error generated.
scons: *** [udf_names.obj] Error 1
Â
Done.
-
-
March 12, 2024 at 2:25 pmGeorge KarnosAnsys Employee
If you open a DOS CMD prompt and type in:
setWhat is the output?
Do you have the prerequisites installed for compiling?
Microsoft Visual Studio 2015, 2017, and 2019 Version 16.0.22Â
(including the MS C++ compiler) and Clang 10.0.0** compilers-
March 12, 2024 at 5:04 pmalinalarinSubscriber
I installed Visual Studio 2022. Do I need to additionally to install 2015, 2017 and 2019 version??
This is the output of set comand:
C:\Users\alinalarin>set
ALLUSERSPROFILE=C:\ProgramData
ANSYS222_DIR=C:\Program Files\ANSYS Inc\ANSYS Student\v222\ANSYS
APPDATA=C:\Users\alinalarin\AppData\Roaming
AWP_LOCALE222=en-us
AWP_ROOT222=C:\Program Files\ANSYS Inc\v222
CADOE_LIBDIR222=C:\Program Files\ANSYS Inc\v222\CommonFiles\Language\en-us
CLIENTNAME=DESKTOP-KQ23EFK
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=AGRAMONBEHEMOTH
ComSpec=C:\Windows\system32\cmd.exe
DriverData=C:\Windows\System32\Drivers\DriverData
HOMEDRIVE=C:
HOMEPATH=\Users\alinalarin
ICEMCFD_ROOT222=C:\Program Files\ANSYS Inc\v222\icemcfd
ICEMCFD_SYSDIR=win64_amd
LOCALAPPDATA=C:\Users\alinalarin\AppData\Local
LOGONSERVER=\\STAFF-DC1
LSTC_LICENSE=Ansys
NUMBER_OF_PROCESSORS=32
OneDrive=C:\Users\alinalarin\OneDrive
OS=Windows_NT
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3e04
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
P_SCHEMA=C:\Program Files\ANSYS Inc\v222\AISOL\CADIntegration\Parasolid\PSchema
QT_OPENGL=desktop
SESSIONNAME=RDP-Tcp#26
SoS_debug_exe=C:\Program Files\ANSYS Inc\v222\optiSLang\sos\sos_console.exe
SoS_exe=C:\Program Files\ANSYS Inc\v222\optiSLang\sos\sos.exe
SoS_install_dir=C:\Program Files\ANSYS Inc\v222\optiSLang\sos
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\ALINAL~1\AppData\Local\Temp
TMP=C:\Users\ALINAL~1\AppData\Local\Temp
USERDNSDOMAIN=STAFF.TECHNION.AC.IL
USERDOMAIN=STAFF
USERDOMAIN_ROAMINGPROFILE=STAFF
USERNAME=alinalarin
USERPROFILE=C:\Users\alinalarin
windir=C:\Windows
ZES_ENABLE_SYSMAN=1
-
-
March 13, 2024 at 3:15 pmalinalarinSubscriber
I installed visual 2017 and also renamed the udf and it works now.Â
-
- The topic ‘UDF compile error’ is closed to new replies.
- How do I get my hands on Ansys Rocky DEM
- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Fluent fails with Intel MPI protocol on 2 nodes
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Cyclone (Stairmand) simulation using RSM
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- convergence issue for transonic flow
-
1507
-
599
-
597
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.