tronkko / dirent

C/C++ library for retrieving information on files and directories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error C2440: "=": Can not convert from "void *" to "dirent **"

suzhengpeng opened this issue · comments

Visual Studio 2017 && Windows 10

error C2440: "=": Can not convert from "void *" to "dirent **"
error C2664: "void qsort (void *, :: size_t, :: size_t, _CoreCrtNonSecureSearchSortCompareFunction)": Can not convert parameter 4 from "void *" to "_CoreCrtNonSecureSearchSortCompareFunction"

When I use your .h in my project , the vs2017 said like it . I don't know what's the matter with it...

Got the same issue...

Apparently it was fixed in a fork here: https://github.com/cjhoward/dirent
Maybe somebody could incorporate it into mainline.

Thanks for your comments! Please try the fix and reopen this ticket if the problem still persists.