Skip to content
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

compile error with new includes for PLAYER #10

Closed
phdsg opened this issue Dec 28, 2017 · 4 comments
Closed

compile error with new includes for PLAYER #10

phdsg opened this issue Dec 28, 2017 · 4 comments

Comments

@phdsg
Copy link

phdsg commented Dec 28, 2017

src/PLAYER.cpp:7:10: fatal error: sys/dir.h: No such file or directory
 #include <sys/dir.h>
          ^~~~~~~~~~~
compilation terminated.
make: *** [../../compile.mk:54: build/src/PLAYER.cpp.o] Error 1

what's that include? maybe i can find the correct one for windows.

@phdsg
Copy link
Author

phdsg commented Dec 28, 2017

okay. it's just <dir.h> in my mingw64

@cfoulc
Copy link
Owner

cfoulc commented Dec 29, 2017

thx i'll try to get a solution to this

@dBiz
Copy link

dBiz commented Dec 29, 2017

Compiled on windows modifying
#include <dir.h>, hope it helps ;)

@cfoulc
Copy link
Owner

cfoulc commented Dec 29, 2017

thx also, it seems only "#include <dirent.h>" is needed, so i took off dir.h and sys stuff :
//#include <sys/dir.h>
#include <dirent.h>
//#ifndef WIN32
// #include <sys/types.h>
//#endif
i think/hope dirent.h is common to all systems.
i still need to find solutions for end and beginning of folder and for not supported files while browsing. :)

@phdsg phdsg closed this as completed Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants