I'm currently doing the AOT tutorial and the compilation part works but when I try to build the code (that's in a separate project), that includes the compiled code, it fails to build because of the following error:
How do I resolve it?
EDIT: follow up question. I managed to compile 2 functions and when I'm trying to use them in the same project, it keeps throwing the following error:
That's just a few of the errors. So my follow up question is. Can I merge all my functions into one file or is there another way to ignore the double definitions?
You can include the NoRuntime
feature in the target to remove the halide_
functions. You still need those functions, of course, and you can use compile_standalone_runtime()
to produce a single copy of them.