Preprocessing

Preprocessing

How do I add a SQLITE header in my udf file?

Tagged: 

    • Ivan Mendez
      Subscriber

      Hey all, I want to create a UDF where I'll be reading from a sql database, so I need to find a way to get sqlite to work in ansys. I did #include sqlite3.h in my source file and then compiled them in ansys, but everytime that I do, it asks for a header file. The first header file it asked was windows.h. Once I added that, it wanted me to add winapifamily.h again. And the list goes on. My question is, How do I add a SQLITE header in my udf file without me having to manually go through adding all the necessary headers that sqlite needs?

    • Rob
      Ansys Employee

      You'll need all of the headers that SQLITE for the compiler, if they're all in the INCLUDE path it may make things easier. Another option is to pre-screen the data so you don't need to link the UDF to the whole lot: that may reduce the need for the SQLITE bits. 

       

    • Ivan Mendez
      Subscriber

      Yeah, I just couldn't make it to work so I just gave up and converted the sql database into csv, which makes it significantly easier to process it via udf

Viewing 2 reply threads
  • You must be logged in to reply to this topic.