c++ - Errors While Loading Mono (Embeded) -
i'm trying embed mono in c/c++ application framework (game engine), have troubles trying run it: following error
the assembly mscorlib.dll not found or not loaded. should have been installed in 'g:\users\mattmatt\workspace\spikyengine\lib\mono\4.5\mscorlib.dll' directory'.
the issue can't find files name of mscorlib.dll
in mono installation directory; suggestions? here code:
#include "../include/spiky/system/log.h" #include <mono/jit/jit. int main(int argc, char **argv) { monodomain *domain; domain = mono_jit_init("test"); monoassembly *assembly; assembly = mono_domain_assembly_open(domain, "file.exe"); if (!assembly) { spiky_log(spiky::log_level_error) << "@mono couldn't load assembly code 'file.exe'"; } return 0; }
i solved it. needed point mono assembly directory, way:
mono_set_dirs("...\\mono\\lib", "...\\mono\\etc");
Comments
Post a Comment