Re: [cfe-users] using Clang for runtime compilation of a class

2015-10-04 Thread Joel Andersson via cfe-users
Hi Georg (and others interested in Clang+JIT), We just implemented this (Clang+JIT) in our open-source project CasADi ( http://casadi.org). Feel free to have a look and/or reuse components. We used a plugin-design for using Clang, which is a bit different from the examples we could find for using

[cfe-users] How to handle C standard library includes?

2015-09-16 Thread Joel Andersson via cfe-users
Hi, I'm trying to add just-in-time compilation support to our library using Clang via the C++ API. Basically we generate C code and compile and and execute this code using Clang + LLVM JIT. We've been struggling how to correctly handle includes to C standard library, e.g. "math.h" or "stdio.h". I