If you are using llvm jit, you should register SymbolMap with function pointer into JITDylib;
there is a full example code to declare extern C function and use them later in LLVM IR. extern C functions