


{"id":396071,"date":"2024-12-03T12:35:42","date_gmt":"2024-12-03T12:35:42","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-compiling-issue-in-ansys-fluent-2\/"},"modified":"2024-12-03T12:35:42","modified_gmt":"2024-12-03T12:35:42","slug":"udf-compiling-issue-in-ansys-fluent-2","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/udf-compiling-issue-in-ansys-fluent-2\/","title":{"rendered":"UDF Compiling issue in ANSYS Fluent"},"content":{"rendered":"<p>&lt;p&gt;Hello everyone,&lt;br&gt;&lt;br&gt;I&#8217;m a french intern in National Technical University of Athens and I&#8217;m currently trying to compile a UDF file (2DGaussian.c) in order to create a moving heat source in ANSYS Fluent but the following error message appears :&lt;br&gt;&lt;br&gt;Setting Post Processing and Surfaces information &#8230; Done.&lt;br&gt;Copy &#8220;C:\\Users\\joshu\\Desktop\\UDF Test\\2DGaussian.c&#8221; to &#8220;libudf\\src&#8221;&lt;br&gt;&lt;br&gt;Creating user_nt.udf file for 3ddp_host &#8230;&lt;br&gt;&lt;br&gt;Copyright 1987-2024 ANSYS, Inc. All Rights Reserved.&lt;br&gt;Compiler and linker: Clang (builtin)&lt;br&gt;&lt;br&gt;scons: warning: No version of Visual Studio compiler found &#8211; C\/C++ compilers most likely not set correctly&lt;br&gt;File &#8220;C:\\Users\\joshu\\Desktop\\Test_avec_fluent_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_host\\SConstruct&#8221;, line 20, in&lt;br&gt;Compiler path: &#8220;C:\\PROGRA~1\\ANSYSI~1\\ANSYSS~1\\v242\\fluent&#8221;\\ntbin\\clang\\bin\\clang-cl&lt;br&gt;Linker path: &#8220;C:\\PROGRA~1\\ANSYSI~1\\ANSYSS~1\\v242\\fluent&#8221;\\ntbin\\clang\\bin\\lld-link&lt;br&gt;&lt;br&gt;scons: warning: No version of Visual Studio compiler found &#8211; C\/C++ compilers most likely not set correctly&lt;br&gt;File &#8220;C:\\Users\\joshu\\Desktop\\Test_avec_fluent_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_host\\SConstruct&#8221;, line 156, in&lt;br&gt;C sources: [&#8216;2DGaussian.c&#8217;]&lt;br&gt;lld-link: error: undefined symbol: ??w&lt;br&gt;&gt;&gt;&gt; referenced by 2DGaussian.obj:(gauss2D_heat_flux)&lt;br&gt;scons: *** [libudf.dll] Error 1&lt;br&gt;Creating user_nt.udf file for 3ddp_node &#8230;&lt;br&gt;&lt;br&gt;Copyright 1987-2024 ANSYS, Inc. All Rights Reserved.&lt;br&gt;Compiler and linker: Clang (builtin)&lt;br&gt;&lt;br&gt;scons: warning: No version of Visual Studio compiler found &#8211; C\/C++ compilers most likely not set correctly&lt;br&gt;File &#8220;C:\\Users\\joshu\\Desktop\\Test_avec_fluent_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_node\\SConstruct&#8221;, line 20, in&lt;br&gt;Compiler path: &#8220;C:\\PROGRA~1\\ANSYSI~1\\ANSYSS~1\\v242\\fluent&#8221;\\ntbin\\clang\\bin\\clang-cl&lt;br&gt;Linker path: &#8220;C:\\PROGRA~1\\ANSYSI~1\\ANSYSS~1\\v242\\fluent&#8221;\\ntbin\\clang\\bin\\lld-link&lt;br&gt;&lt;br&gt;scons: warning: No version of Visual Studio compiler found &#8211; C\/C++ compilers most likely not set correctly&lt;br&gt;File &#8220;C:\\Users\\joshu\\Desktop\\Test_avec_fluent_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_node\\SConstruct&#8221;, line 156, in&lt;br&gt;C sources: [&#8216;2DGaussian.c&#8217;]&lt;br&gt;lld-link: error: undefined symbol: ??w&lt;br&gt;&gt;&gt;&gt; referenced by 2DGaussian.obj:(gauss2D_heat_flux)&lt;br&gt;scons: *** [libudf.dll] Error 1&lt;br&gt;&lt;br&gt;Done.&lt;br&gt;Copy &#8220;C:\\Users\\joshu\\Desktop\\UDF Test\\2DGaussian.c&#8221; to &#8220;libudf\\src&#8221;&lt;br&gt;&lt;br&gt;Files udf_names.c and user_nt.udf in 3ddp_host are up-to-date.&lt;br&gt;&lt;br&gt;Copyright 1987-2024 ANSYS, Inc. All Rights Reserved.&lt;br&gt;Compiler and linker: Clang (builtin)&lt;br&gt;&lt;br&gt;scons: warning: No version of Visual Studio compiler found &#8211; C\/C++ compilers most likely not set correctly&lt;br&gt;File &#8220;C:\\Users\\joshu\\Desktop\\Test_avec_fluent_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_host\\SConstruct&#8221;, line 20, in&lt;br&gt;Compiler path: &#8220;C:\\PROGRA~1\\ANSYSI~1\\ANSYSS~1\\v242\\fluent&#8221;\\ntbin\\clang\\bin\\clang-cl&lt;br&gt;Linker path: &#8220;C:\\PROGRA~1\\ANSYSI~1\\ANSYSS~1\\v242\\fluent&#8221;\\ntbin\\clang\\bin\\lld-link&lt;br&gt;&lt;br&gt;scons: warning: No version of Visual Studio compiler found &#8211; C\/C++ compilers most likely not set correctly&lt;br&gt;File &#8220;C:\\Users\\joshu\\Desktop\\Test_avec_fluent_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_host\\SConstruct&#8221;, line 156, in&lt;br&gt;C sources: [&#8216;2DGaussian.c&#8217;]&lt;br&gt;lld-link: error: undefined symbol: ??w&lt;br&gt;&gt;&gt;&gt; referenced by 2DGaussian.obj:(gauss2D_heat_flux)&lt;br&gt;scons: *** [libudf.dll] Error 1&lt;br&gt;Files udf_names.c and user_nt.udf in 3ddp_node are up-to-date.&lt;br&gt;&lt;br&gt;Copyright 1987-2024 ANSYS, Inc. All Rights Reserved.&lt;br&gt;Compiler and linker: Clang (builtin)&lt;br&gt;&lt;br&gt;scons: warning: No version of Visual Studio compiler found &#8211; C\/C++ compilers most likely not set correctly&lt;br&gt;File &#8220;C:\\Users\\joshu\\Desktop\\Test_avec_fluent_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_node\\SConstruct&#8221;, line 20, in&lt;br&gt;Compiler path: &#8220;C:\\PROGRA~1\\ANSYSI~1\\ANSYSS~1\\v242\\fluent&#8221;\\ntbin\\clang\\bin\\clang-cl&lt;br&gt;Linker path: &#8220;C:\\PROGRA~1\\ANSYSI~1\\ANSYSS~1\\v242\\fluent&#8221;\\ntbin\\clang\\bin\\lld-link&lt;br&gt;&lt;br&gt;scons: warning: No version of Visual Studio compiler found &#8211; C\/C++ compilers most likely not set correctly&lt;br&gt;File &#8220;C:\\Users\\joshu\\Desktop\\Test_avec_fluent_files\\dp0\\FFF\\Fluent\\libudf\\win64\\3ddp_node\\SConstruct&#8221;, line 156, in&lt;br&gt;C sources: [&#8216;2DGaussian.c&#8217;]&lt;br&gt;lld-link: error: undefined symbol: ??w&lt;br&gt;&gt;&gt;&gt; referenced by 2DGaussian.obj:(gauss2D_heat_flux)&lt;br&gt;scons: *** [libudf.dll] Error 1&lt;br&gt;&lt;br&gt;Done.&lt;br&gt;&lt;br&gt;Could anyone help me with this problem please?&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-396071","topic","type-topic","status-publish","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27796"],"_bbp_topic_id":["396071"],"_bbp_author_ip":["193.92.213.119"],"_bbp_reply_count":["1"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["488665","199"],"_btv_view_count":["170"],"_bbp_topic_status":["unanswered"],"_bbp_subscription":["199"],"_bbp_last_reply_id":["396106"],"_bbp_last_active_id":["396106"],"_bbp_last_active_time":["2024-12-03 14:46:20"]},"test":"joshua-mimartsigma-clermont-fr"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/396071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/396071\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=396071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}