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

was not declared in this scope #78

Open
victorbnl opened this issue Sep 15, 2018 · 1 comment
Open

was not declared in this scope #78

victorbnl opened this issue Sep 15, 2018 · 1 comment

Comments

@victorbnl
Copy link

victorbnl commented Sep 15, 2018

I have many errors like
bluetooth.cpp:291:17: error: ‘close’ was not declared in this scope close(sk); ^~~~~
:/
On Ubuntu 18.04 LTS

@mstr3336
Copy link

mstr3336 commented Nov 24, 2018

I get the same problems- I started editing the original code to #include <unistd.h>, but I get the feeling that downgrading your g++ compiler to <4.7 may be the trick, https://gcc.gnu.org/gcc-4.7/porting_to.html
https://stackoverflow.com/a/37734860

Alternatively -
Just keep bashing your head against adding that '#include <unistd.h>' line to any and all .cpp files that throw errors at you until eventually you stop getting errors.
Worked for me, after changing maybe 4-6 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