[Issue 21879] -betterC "undefined reference to '_memset32'"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 30 08:43:23 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21879

Blatnik <blatblatnik at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blatblatnik at gmail.com

--- Comment #1 from Blatnik <blatblatnik at gmail.com> ---
I ran into this exact same problem. This is by no means an actual patch, but if
you need to use this notation now, you can define this function yourself.

Somewhere in one of your .d files, you can define it like this:

// int[64] i; i[] = 42;
extern(C) void _memset32(uint* uints, uint value, size_t length)
{
  for (size_t i = 0; i < length; ++i)
    uints[i] = value;
}

I don't understand why you need to do it yourself, this should definitely be
fixed.

--


More information about the Digitalmars-d-bugs mailing list