{"id":166293,"date":"2023-03-17T13:11:30","date_gmt":"2023-03-17T13:11:30","guid":{"rendered":"\/knowledge\/forums\/topic\/fluent-any-version-udf-compilation-running-on-windows-10-with-microsoft-visual-studio-fails-to-compile-with-the-error-udf-compilation-error-link-fatal-error-lnk1104-cannot-open-file-kernel32\/"},"modified":"2023-07-31T12:34:54","modified_gmt":"2023-07-31T12:34:54","slug":"fluent-any-version-udf-compilation-running-on-windows-10-with-microsoft-visual-studio-fails-to-compile-with-the-error-udf-compilation-error-link-fatal-error-lnk1104-cannot-open-file-kernel32","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/fluent-any-version-udf-compilation-running-on-windows-10-with-microsoft-visual-studio-fails-to-compile-with-the-error-udf-compilation-error-link-fatal-error-lnk1104-cannot-open-file-kernel32\/","title":{"rendered":"Fluent (any version) UDF compilation running on Windows 10 with Microsoft Visual Studio fails to compile with the error:  UDF compilation error- LINK : fatal error LNK1104: cannot open file &#8216;kernel32.lib&#8217;"},"content":{"rendered":"<p>This error will occur when there is a LIB environment variable present that is pointing to an outdated location for kernel32.lib or if there is no LIB variable pointing to a newer kernel32.lib file.  For Fluent Version V202: Create a LIB System variable. The value would be: LIB=C:Program FilesANSYS Incv202fluentntbinclangkitlibwinv6.3umx64  For Fluent Version 201 and older: I have attached kernel32.zip file. Download the file and extract it to anywhere on your system, for example, c:temp.   Create a LIB SYSTEM variable and the value will be the location of the kernel32.lib file. <\/p>\n<p>Attachments:<br \/>\n1. <a href=https:\/\/ansys13.ansys.com\/KnowledgeArticles\/Phase-1\/2061708\/2061708.zip>2061708.zip<\/a><\/p>\n","protected":false},"template":"","class_list":["post-166293","topic","type-topic","status-publish","hentry","topic-tag-2020-r2","topic-tag-compiler-support","topic-tag-fluent","topic-tag-fluent-sys","topic-tag-installation-licensing-systems","topic-tag-kernel","topic-tag-lib","topic-tag-udf"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["3\/15\/2023 20:20"],"_bbp_forum_id":["153867"],"_bbp_author_ip":["23.56.168.180"],"_btv_view_count":["2953"],"siebel_km_number":["2061708"],"product_version":["2020 R2"],"km_published_date":["2019-11-26T03:45:40.000Z"],"family":["Installation\/Licensing\/Systems"],"application_name":["FLUENT - SYS"]},"test":"solution"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/166293","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\/166293\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=166293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}