I would like to be able to code in C++ on my Raspberry Pi. I know that you can edit, run, and compile with only the command line, but I would like a more familiar IDE, such as Visual Basic or CodeBlocks. Are there any I could use?
I was going to just add a comment but did not have enough reputation. I use code:blocks (currently version 13.12 in the repository) for C++ development which can be installed via the terminal using:
$ sudo apt-get update $ sudo apt-get install codeblocks
Then run from the command line with
$ codeblocks or from the menu Start > Programming > code::blocks. This has been tested on Raspberry PI models A, B, 2B, 3B using Raspbian Jessie.
If you are using windows, I'd recommend using Visual Studio. I see that Visual Studio 2017 is now out, and supports both Windows and Mac operating systems. The number one reason I'd recommend this, is there is a Visual Studio Marketplace tool available "Visual C++ for Linux Development" that is pretty amazing for anyone pushing code to remote devices. You write code on your desktop/laptop in Visual Studio (VS).
VS pushes code to your remote device (raspberry pi) for you. You don't have to SSH login to the PI. You don't have to copy code from one place to another. This makes it much easier to manage your project, keep track of updates, ete...
More importantly, that tool includes GDB (Gnu Debugging) which enables you to step debug content on your Raspberry Pi, directly from Visual Studio. If you've got content based on GPIO inputs, you can see exactly what's going on real time.
Here is friendly introduction for using Visual Studio with the Orange/Raspberry Pi. that shows the use of the extra "Visual C++ for Linux Development" tool, including some sample code.
Note: I've been using Microsoft Visual Studio 2015 Community Edition (which is free) up until now. Its not clear on the cost of Visual Studio 2017 (if any)
Edit: It turns out other Integrated Development Environments (IDE) also support GDB debugging. Here's a link describing the process for JetBrain's cLion's IDE. The JetBrain software is way cool, but obviously not free.
Edit #2: Scratch Visual Studio for Mac. That seems to work only for Android/iOS apps and .net. Seems to be no go on C/C++, Python, Node.js ... there is no extension manager option, unlike normal Visual Studio. Sigh.
Both CodeBlocks and wxWidgets can be installed on your RPi from the command line or graphical package manager. I prefer Synaptic as a graphical package manager over the one that comes with Raspberry Pi OS.