CLion has Run buttons greyed out or they dont work correctly - c++

I just got CLion today, and wanted to try it out. However, no matter what version I use, the following comes up when I open the run menu (I am on Windows):
Under "Run" in the top bar the normal Run and Debug are greyed out and I can only use the Run... / Debug... ones
In the top-right corner of the IDE the run button, the debug button and two other ones are also greyed out.
If I click on the run button or the debug button from the run menu (the ones with ... on the end) there is a run option 0 called "edit configurations" which allows me to make a new run configuration.
So I tried to set up something that works, but I was unable to do so. I also could not find anything on the internet that I was able to understand, and every tutorial that I watched had already had it working.
Could someone please help me in an idiot-proof way?

Minimal working sample (macOS) - nothing fancy, just a good old Hello, world!
Minimal working sample (Windows 10) - nothing fancy, just a good old Hello, world!
Install Visual Studio 2019
https://visualstudio.microsoft.com/vs/
Configure toolchain
Run sample code

Related

Qt Application not running

I am trying to run a simple "Hello, world" console application but I am experiencing some errors when compiling that I am not familiar with. I have done a bit of research into similar problems with Qt but I haven't been able to find a solution. The closest solution I have come across was to change my Patch Command setting under:
Preferences -> Environment -> System -> Patch Command
to
usr/bin/xterm -e
However, when I try to do this it goes red indicating that I do not have this file.
Environment Preferences Window
The following image is a screenshot of what is displayed in the terminal window when attempting to compile my project.
Console Application Output
Any help on this problem would be much apprectiated! It is very frustrating having something like this hold me back!
Don't run your project in a terminal unless you actually select a working terminal, and that's all. The patch command is irrelevant in this anyway - it's not the terminal, but the patch command -- used to patch source code. You don't need it unless you explicitly use code patching. Go to Projects (Ctrl-5), click on the active Run configuration for your project, uncheck "Run in terminal", done.

Eclipse: Info: Nothing to build for [Project Name]

I'm currently new to C++ and I created a Hello World in Eclipse C/C++ but all It says in the Console is: Info: Nothing to Build for [project name].... How to fix this? Yes, I have done everything like setting up the variables of my mingw and all that and I still get this message on my Console... I searched all of this stuff on the Internet but It didn't quite help...
You have your console view set to the wrong console.
There is a build console and the normal output console. It should switch to the output console when running, automatically (but, any ways, it didn't).
On the console view there is a set of buttons, one of which looks like a little monitor. If you click on the little arrow next to that you can select the output console for your program:

xcode6 - Is there a way to display echo statements from the build script to the console?

I have echo statements in my build script. I used to be able to see them in the console during the build. Now I cannot figure out how to turn it on. All other questions and information I have found on the Internet is for previous versions of Xcode and none of them work for me.
Click on the Report Navigator button and select the build log you want. I'll put an image here to show you as soon as I can.

NetBeans 7.0.1 good C++ program execution "RUN FAILED"

Working inside NetBeans 7.0.1, fresh install on Ubuntu 13.10.
I have a known good C++ program.
I finally get it to compile and link.
When I press the Netbeans Run Main Project triangle, the execution breaks with
java.util.MissingResourceException: bin/nativeexecution/Linux-x86/pty
RUN FAILED
What's going on, and how to fix it?
This is a NetBeans output-window setting problem.
NetBeans comes up with C++ projects defaulting to "Internal Terminal". This is not working on your present configuration.
The answer is to switch your output to "External Terminal", which pops up a separate purple terminal typing console in its own window for your interaction, or "Standard Output",which presents the output in the expected white subpane below.
Do this by:
Right-mouse-click on your project name -> Properties
on the left side, in the "Categories:" column, select * Run
on the right side, beside the >General -> Console Type:,
change the pulldown menu from "Internal Menu" into "Standard Output".
Hit the OK button at the bottom to lock it in.
Now your project will run, forever after, when you ask it to.
according to this netbeans forum post package of netbeans 7.0.1 is lacking some files.
Removing version from repo and installing from netbeans download site worked like a charm for me and nb forum OP.
So problem is also in ubuntu 14.04.
Also repo version is little out-of-date and NB have nice .sh installer. Just remember to install some JDK from repo or anywhere else.

Eclipse runs old code even after building the new one

I started to study c++ and i choosen Eclipse IDE for it.
I need some basic instructions.
Even after i compile my code with ctrl+b Eclipse shows me the old "Hello World" program in console. If i look up the compiled .exe files in my projects "Release" folder i can ran my new program very well.
For some reason Eclipse does not refresh output console.
Any ideas?
Have you tried checking that there are not still multiple consoles open. On the console tab try clicking the Display Selected Console button, or pushing the red terminate button until it becomes greyed out and then running it again.
I saw at the output console's setting's that it is showing my project's Debug release.
So i searched for the compiled in my Debug folder and i saw it was the old .exe of my project.
After that i did the same thing within the Release folder that was the new code!
So all i did was changed the run configuration to Release, pic below.
And now it is working.
Just clean the project from menu...