1
votes

I downloaded druntime from https://github.com/xomboverlord/xomb-bare-bones/tree/master. It's druntime made for bare bones XOmB OS. If I want to compile it to object files, dmd return error "undefined identifier _xopEquals". Then I was look to official druntime and I found function _xopEquals. When I add this function to XOmB druntime, nothing changed...

I found this function in druntime/src/object_.d :

bool _xopEquals(in void*, in void*)
{
     throw new Error("TypeInfo.equals is not implemented");
}

And I add it to module where DMD invoke the error.

1
What's the definition of the function you used and in which file did you put it? I've never used the xomb thing but I have done my own druntime... - Adam D. Ruppe
try putting it in your own runtime's object.d. - Adam D. Ruppe
It solved this problem. But many other orrors raise :(. D dependenci on druntime will ruin me...anyway, really thanks for help - dev1223
here's the minimal one i did btw: arsdnet.net/dcode/minimal.zip a lot of the language works with a fairly small runtime, stripped binaries are about 30 KB - Adam D. Ruppe
Another problem, I compile object.d file to object file. this is OK. Thank I compile my test file to object file, OK. BUT If I want to link it together, LD return many errors undefined reference to: D9invariant12_d_invariantFC6ObjectZv. Strange. - dev1223

1 Answers

0
votes
  1. What is the first question?

  2. Yes, druntime's documentation is on this page: http://dlang.org/phobos/index.html . All modules in the core package are druntime modules. DMD's Phobos distribution contains druntime. However, some other implementations may or may not do so. GDC project, for an example, distributes a separated libgdruntime.a from libgphobos2.a .