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

Properties menu item is gone #116

Closed
VictorEijkhout opened this issue Nov 7, 2019 · 6 comments
Closed

Properties menu item is gone #116

VictorEijkhout opened this issue Nov 7, 2019 · 6 comments

Comments

@VictorEijkhout
Copy link

I had a code where the #include <optional> was unresolved, so I thought I'd replace g++ by clang++. I somehow managed to do taht, but now even #include <iostream> is unresolved, so I want to go back.

Where do I specify the compiler?

I sort of suspect that that's under File > Properties, but that dialog refuses to come up. I've restarted the Cevelop program and done "reset perspective", but nothing helps. Reboot next?

@PeterSommerlad
Copy link

If you are on a mac, make sure to have the XCode command line tools installed (search for that on the internet on how to do it).

Then create a "Hello World" C++ project using the project wizard and see if that compiles and runs.

If not, then your C++compilation infrastructure is insufficient.

If you use homebrew, you might need to add /usr/local/bin to the runnnig Cevelop's Environment through the global preferences...

@VictorEijkhout
Copy link
Author

VictorEijkhout commented Nov 8, 2019 via email

@tcorbat
Copy link

tcorbat commented Nov 8, 2019

  1. The build console is probably not wiped, but hidden by the output console. You can cycle through the consoles using the "Terminal" icon in the console view. If you don't want the consoles to switch on output you can toggle the corresponding buttons:
    grafik

  2. There should be a File -> Properties entry. I don't know why this menu entry could vanish and have never experienced Eclipse CDT removing it by itself. However, you can customize your perspective. Window -> Perspective -> Customize Perspective.... In the Menu Visibility tab, you can tick the properties entry:

grafik

In the properties of your project you can configure the compiler command: Properties -> C/C++ Build -> Settings -> Tool Settings (Tab) -> GCC C++ Compiler -> Command:

grafik

@PeterSommerlad
Copy link

I used the default GCC toolchain, and according to the console it invokes clang++

If you are on a mac and just have XCode and its command line tools install, it comes with clang that disguises as gcc, i.e., it is callable as g++ while still being clang. So selecting the GCC toolchain will give you the clang compiler regardless.

If you use homebrew to install gcc under /usr/local/bin, you have to go to the Top-level menu Cevelop C++ IDE->Preferences->C/C++->Build->Environment and Select... the PATH environment variable and adjust it to have /usr/local/bin before all other paths:

Screenshot 2019-11-08 at 11 24 15

With that the GCC toolchain actually uses gcc. Sorry for confusing you by saying "properties" and not being clear but I was on the phone and not my computer when replying. You can also set that environment project specific by using the C++ project's properties.

@VictorEijkhout
Copy link
Author

VictorEijkhout commented Nov 16, 2019 via email

@VictorEijkhout
Copy link
Author

VictorEijkhout commented Nov 16, 2019 via email

@tcorbat tcorbat closed this as completed Nov 18, 2019
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