UDF header compilation error – “dirent.h”

    • m.shafiee1374

      Hello everyone,

      I've written a udf to read a bunch of coefficients from the text files in a specific directory. I used the "dirent.h" header to read the directory and the code works fine outside Ansys Fluent. However when I'm trying to build it inside Fluent, it gives me the following error:

      ....srcdata_import.c(2) : fatal error C1083: Cannot open include file: 'dirent.h': Invalid argument

      I tried to install the "dirent.h" header file manually into the MS Visual Studio directory. But then when I build the udf, it gives a lot of other errors.

      P.S. I'm using MS express 2012 and Ansys Workbench 17.

      Any solutions?🙄

    • RK
      Ansys Employee
      Can you please update to a newer version and try this? Thanks.
Viewing 1 reply thread
  • You must be logged in to reply to this topic.