tronkko / dirent

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation error in Visual Studio 2013

olivierbichler-cea opened this issue · comments

Hi,

I have the following error on Visual Studio 2013, since the addition of scandir():

C:\projects\dirent\include\dirent.h(917): error C2440: '=' : cannot convert from 'void *' to 'dirent *' [C:\projects\n2d2\build\N2D2-OS.vcxproj]
Conversion from 'void
' to pointer to non-'void' requires an explicit cast
C:\projects\dirent\include\dirent.h(968): error C2664: 'void qsort(void *,size_t,size_t,int (__cdecl *)(const void *,const void *))' : cannot convert argument 4 from 'void *' to 'int (__cdecl *)(const void *,const void *)' [C:\projects\n2d2\build\N2D2-OS.vcxproj]

I got the same with you~ 囧

Got the same issue with VS 2017. Cannot use dirent anymore :(

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