-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error on Windows 10 #49
Comments
Hi @dumganhar , can you please try compiling one of the examples, to see if any one fails. If so, could you please provide:
|
@dumganhar @cxong 1>------ Build started: Project: libcocos2d, Configuration: Debug Win32 ------ Windows 10 1607 Visual Studio 2017 |
Not tested for UWP yet. |
Looks like UWP uses a completely different API. I imagine adding to tinydir will make it 50% bigger (so that it supports dirent, FindFirstFile, StorageFolder). Also it's an asynchronous API so I'm not sure how it's going to work with tinydir's existing API. Patches welcome 😄 |
@dumganhar can you please provide your compiler settings and output? If your patch fixes it then it sounds like a different problem than the one @ArashBaba described. Also I've compiled tinydir under windows 10 and Visual Studio 2017 without problems, so I'm not 100% sure it's purely a windows 10 thing. I can't find a reference online saying that |
@cxong , in fact, I got the same compile error as @ArashBaba got. |
Are you compiling against windows phone 8? The requirements for |
@dumganhar So you replace FindFirstFile with FindFirstFileEx? This will drop the support of Windows 95/98 and something about Windows Phone that @cxong had said. |
Sounds like this problem is similar: http://stackoverflow.com/q/32240164/2038264 Unfortunately in that question OP also did not specify their specific compiler settings. I'm happy to accept this fix but not before understanding what exactly we're fixing; I wasn't aware that tinydir worked under Win 95/98 at all 😄 but I don't think they're important, WinXP+ should be fine. If anyone wants to support Win 95/98 I guess they can submit patches, I don't have access to those so I can't maintain it. |
Example 2 just works fine in Windows 95/98(Ansi only) using MINGW now. But it's not important as you said. |
14393 is Windows 10 Anniversary Update. |
#51 would be a better way to fix this issue. Wait for further tests. |
FindFirstFile
function is missing on Windows 10.The text was updated successfully, but these errors were encountered: