{"id":161508,"date":"2023-01-25T07:16:09","date_gmt":"2023-01-25T07:16:09","guid":{"rendered":"\/knowledge\/forums\/topic\/q-fluent-udf-compiles-ok-on-windows-but-compilation-fails-on-linux-with-the-error-error-expected-expression-before-token\/"},"modified":"2023-07-31T12:35:25","modified_gmt":"2023-07-31T12:35:25","slug":"q-fluent-udf-compiles-ok-on-windows-but-compilation-fails-on-linux-with-the-error-error-expected-expression-before-token","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/q-fluent-udf-compiles-ok-on-windows-but-compilation-fails-on-linux-with-the-error-error-expected-expression-before-token\/","title":{"rendered":"Q: Fluent UDF compiles OK on windows but compilation fails on linux with the error &#8220;error: expected expression before \u2018\/\u2019 token&#8221;"},"content":{"rendered":"<p>A: Fluent compiles UDFs with the the strict ANSI compliant flag turned on. The linux compiler checks against an older ANSI standard than the windows compiler such that it does not recognise the &#8220;\/\/&#8221; syntax for a comment line. The workaround is to convert &#8220;\/\/&#8221; comments to the open\/close comment format of &#8220;\/*&#8221; to open and &#8220;*\/&#8221; to close.<\/p>\n","protected":false},"template":"","class_list":["post-161508","topic","type-topic","status-publish","hentry","topic-tag-2019-r1","topic-tag-fluent","topic-tag-fluid-dynamics","topic-tag-general","topic-tag-general-fluent"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_forum_id":["27796"],"_bbp_author_ip":["23.56.168.180"],"_bbp_last_active_time":["1-24-2023  20:20:33"],"_btv_view_count":["695"],"siebel_km_number":["2059060"],"product_version":["2019 R1"],"km_published_date":["2019-04-26T14:10:26.000Z"],"family":["Fluid Dynamics"],"application_name":["FLUENT"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/161508","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\/161508\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=161508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}