<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>First of all, I am a newbie when it comes to LLVM so apologies if I am missing something obvious.</div><div>I am using Orc/LLVM as a backend for my JIT expression parser/evaluator and I'm running into this error:</div><div><br></div><div>JIT session error: Symbols not found: { fmodf }</div><div><br></div><div>When using the frem instruction in IR like for example:</div><div><br></div><div>%remainder = frem float %aFloat, 1.000000e+01</div><div><br></div><div>Am I supposed to provide this symbol somehow or is this actually not supposed to happen?</div><div><br></div><div>I have tried calling llvm::sys::DynamicLibrary::LoadLibraryPermanently(nullptr) to load the symbols in my host process but it still won't find it even if I define a custom 'extern "C" fmodf' function.</div><div>I've tried it on both x86_64-pc-windows-msvc and x86_64-unknown-linux-gnu (GCC) though I mostly work with msvc.</div><div>I also would rather not allow my expressions to have access to all the symbols in my host process anyway so I am okay with providing these 'manually' somehow.</div><div>So if I have to provide these manually, what is the best way of doing this? And where can I find a list of all these symbols that LLVM expects to be available?</div><div><br></div><div>Thanks,</div><div><br></div><div>Machiel van Hooren</div><div><br></div><div>P.S.</div><div>If anyone is interested, the source for this project can be found on github:</div><div><a href="https://github.com/mvhooren/JitCat/tree/llvm_backend">https://github.com/mvhooren/JitCat/tree/llvm_backend</a> <br></div></div></div></div>