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

Installation on Windows #7

Open
bradrn opened this issue Oct 29, 2018 · 2 comments
Open

Installation on Windows #7

bradrn opened this issue Oct 29, 2018 · 2 comments

Comments

@bradrn
Copy link

bradrn commented Oct 29, 2018

When I try to install this on Windows, I get the following error:

C:\Users\bradn\Downloads\Algojammer\c_ext> python setup.py build install
running build
running build_ext
building 'algorecord' extension
...
(lots of output)
...
recorder.cpp
recorder.cpp(4): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

This is because the unistd.h library is not available on Windows. Surprisingly however, it turns out that if I simply comment out the #include "unistd.h" line in recorder.cpp, everything starts to work. If this header file is not used, then why is it #included at all, or does commenting out this line cause some subtle error that I'm missing?

@ChrisKnott
Copy link
Owner

I probably included that header for some debugging purpose and forgot to remove it.

The quality of this codebase is not guaranteed!

@bradrn
Copy link
Author

bradrn commented Oct 29, 2018

Thank you for clarifying. But actually, I've just remembered it got even weirder than that: several other files included the same header, but it doesn't seem to trigger any errors in those files.

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

2 participants