The simplest way to program in C++ on Raspberry Pi seem to me to start in Geany with the ‘Hello World’ example, which successfully gave a console output. But I wanted to create a GUI, so I read C_GUI_Programming from RPi Bookshelf and, following the steps, ran:
sudo apt-get install libgtk2.0-dev at the RPi terminal, then
pkg-config --cflags --libs gtk±2.0.
These both reported some failures, but I tried adding to my source file anyway the line:
#include <gtk/gtk.h>, but Geany couldn’t find this file.
Given my inexperience with Linux generally, I thought the Eclipse C++ IDE might with its polished user interface ‘hold my hand’ through the process, but compiling and running a similar ‘Hello World’ example produced about 30 syntax errors in a makefile. I didn’t even enter any code.
Could anyone suggest any reason I shouldn’t put the Raspberry Pi project on ‘hold’ and get back to building my electric vehicle? After all I’m 60 and wasting another 10 years might not be advisable!