{"id":169807,"date":"2023-05-15T08:32:52","date_gmt":"2023-05-15T08:32:52","guid":{"rendered":"\/knowledge\/forums\/topic\/i-have-udf-that-used-to-work-but-now-the-compilation-is-failing-on-a-header-file-with-the-error-srcudf-c9-fatal-error-c1083-cannot-open-include-file-info-h-invalid-argument-if-i-comm\/"},"modified":"2023-07-31T12:28:56","modified_gmt":"2023-07-31T12:28:56","slug":"i-have-udf-that-used-to-work-but-now-the-compilation-is-failing-on-a-header-file-with-the-error-srcudf-c9-fatal-error-c1083-cannot-open-include-file-info-h-invalid-argument-if-i-comm","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/i-have-udf-that-used-to-work-but-now-the-compilation-is-failing-on-a-header-file-with-the-error-srcudf-c9-fatal-error-c1083-cannot-open-include-file-info-h-invalid-argument-if-i-comm\/","title":{"rendered":"I have UDF that used to work, but now the compilation is failing on a header file with the error: &#8230;.srcUDF.c(9) : fatal error C1083: Cannot open include file: &#8216;info.h&#8217;: Invalid argument If I comment out the include line for info.h, it fails on the next header file. The required header files are all in my working directory.  Why isn&#8217;t Fluent finding them?"},"content":{"rendered":"<p>Unlike built-in header files, custom header files will not be located unless they are added to the right hand side of the &#8220;Compiled UDFs&#8221; window  (see attachment).  This will ensure that they are copied (along with the UDF) to the libudf\/src folder, which is where the compile looks for them.<\/p>\n<p>Attachments:<br \/>\n1. <a href=https:\/\/ansys13.ansys.com\/KnowledgeArticles\/Phase-2B\/2053383\/header_files.png>header_files.png<\/a><\/p>\n","protected":false},"template":"","class_list":["post-169807","topic","type-topic","status-publish","hentry","topic-tag-4391","topic-tag-fluent","topic-tag-fluid-dynamics","topic-tag-general-fluent","topic-tag-udf"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["05-15-2023  20:20:01"],"_bbp_forum_id":["27796"],"_bbp_author_ip":["209.182.204.162"],"_btv_view_count":["702"],"siebel_km_number":["2053383"],"product_version":["19"],"km_published_date":["2018-02-28T00:00:00.000Z"],"family":["Fluid Dynamics"],"application_name":["FLUENT"]},"test":"solution"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/169807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/169807\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=169807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}