Heater
Posts: 13915
Joined: Tue Jul 17, 2012 3:02 pm

Re: Running C/C++ on Raspberry Pi

Wed Oct 16, 2019 8:51 am

dsyleixa123,
If I type vi in the console it's just an ugly b+w text-box.
Odd thing that.

When I type gcc in the console it says:

Code: Select all

gcc: fatal error: no input files
compilation terminated.
How useless is that?!

I guess at some point one has to have a clue.
..and don't forget: this topic is about a beginner to C(++) programming on the Pi who is asking about an IDE.
Yes. So why did you mention vi again?

I have to come clean, I do almost all of my editing, for all kind of languages, in Visual Studio Code now a days.

Luckily VSCode is really good at working with files on my headless Pi and remote machines over ssh from my PC/Laptop.

I've tried all kind of other editors and IDEs over the years, hated them all, Eclipse and InteliJ are the worst. VSCode rocks my boat. Thank you Microsoft, all is forgiven.
Memory in C++ is a leaky abstraction .

jahboater
Posts: 4843
Joined: Wed Feb 04, 2015 6:38 pm

Re: Running C/C++ on Raspberry Pi

Wed Oct 16, 2019 9:11 am

In the early days of UNIX the developers were remarkably clever and at the same time were poor typists (or were using 300 baud teletypes).

The design of vi is remarkable, you can do more work with less key strokes with vi than with any other editor.
Thinking instead of typing.

However I would rather be thinking about the programming problem I am trying to solve.

The wide availability of vi, without any installation, or any type of special terminal, is a useful plus point.

dsyleixa123
Posts: 462
Joined: Mon Jun 11, 2018 11:22 am

Re: Running C/C++ on Raspberry Pi

Wed Oct 16, 2019 9:14 am

on the Pi, also Geany needs no installation (as it comes pre-installed ;) )

Heater
Posts: 13915
Joined: Tue Jul 17, 2012 3:02 pm

Re: Running C/C++ on Raspberry Pi

Wed Oct 16, 2019 9:28 am

Yes, I find all kind of junk pre-installed on a full up Raspbian :)
Memory in C++ is a leaky abstraction .

dsyleixa123
Posts: 462
Joined: Mon Jun 11, 2018 11:22 am

Re: Running C/C++ on Raspberry Pi

Wed Oct 16, 2019 9:49 am

Heater wrote:
Wed Oct 16, 2019 9:28 am
Yes, I find all kind of junk pre-installed on a full up Raspbian :)
e.g., like vi :D

User avatar
rpdom
Posts: 15596
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Running C/C++ on Raspberry Pi

Wed Oct 16, 2019 9:54 am

dsyleixa123 wrote:
Wed Oct 16, 2019 9:14 am
on the Pi, also Geany needs no installation (as it comes pre-installed ;) )
Not on any of mine, it doesn't. (Running Raspbian Lite headless on all of them). I'll stick with vi, thanks :)

dsyleixa123
Posts: 462
Joined: Mon Jun 11, 2018 11:22 am

Re: Running C/C++ on Raspberry Pi

Wed Oct 16, 2019 9:57 am

rpdom wrote:
Wed Oct 16, 2019 9:54 am
dsyleixa123 wrote:
Wed Oct 16, 2019 9:14 am
on the Pi, also Geany needs no installation (as it comes pre-installed ;) )
Not on any of mine, it doesn't. (Running Raspbian Lite headless on all of them). I'll stick with vi, thanks :)
who in the world needs Raspbian Lite headless, esp as a beginner? :D

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24165
Joined: Sat Jul 30, 2011 7:41 pm

Re: Running C/C++ on Raspberry Pi

Wed Oct 16, 2019 11:02 am

Every single time, someone asks a perfectly sensible question, and the discussion degrades into my editor is better than yours.

Enough, you all look pathetic enough already, no need to keep trying.

As with everything - it's whatever you are comfortable with. Command line, GUI. No-one cares. Especially me.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

Return to “C/C++”