General

General

Q: Fluent UDF compiles OK on windows but compilation fails on linux with the error “error: expected expression before ‘/’ token”

    • FAQFAQ
      Participant

      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 “//” syntax for a comment line. The workaround is to convert “//” comments to the open/close comment format of “/*” to open and “*/” to close.