D error messages for function call mismatches

tetyys via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 27 07:30:50 PDT 2017


On Tuesday, 27 June 2017 at 14:29:05 UTC, FoxyBrown wrote:
> arsd\stb_truetype.d(1246): Error: function 
> core.stdc.stdlib.qsort (scope void* base, uint nmemb, uint 
> size, extern (C) int function(scope const(void*), scope 
> const(void*)) @system compar) is not callable using argument 
> types (void*, int, uint, extern (C) int function(const(void*) 
> p, const(void*) q))
>
> Find the bug!
>

well for starters you're passing an int to nmemb paramater


More information about the Digitalmars-d mailing list