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

[make Error] optional: No such file or directory #4

Closed
cardboardcode opened this issue Jul 23, 2020 · 0 comments
Closed

[make Error] optional: No such file or directory #4

cardboardcode opened this issue Jul 23, 2020 · 0 comments

Comments

@cardboardcode
Copy link
Contributor

This issue has been resolved. This post is only to record an error I faced as well as the remedy for it.

Issue Description

Running make all fails and generates make error

optional: No such file or directory

This is caused by an incompatible g++ version. The g++ version to run the command make all successfully is g++7

To check your current g++ version, run the command:

g++ --version

Solution

Install or change your default g++ version
For installing

sudo apt-get install g++-7.5
For changing
sudo update-alternatives --config g++
Then choose g++7 and above.

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

1 participant