curlyc
Posts: 15
Joined: Wed Feb 01, 2017 4:30 am

compile

Sat Feb 04, 2017 1:33 am

anyone know a good compiler that works well on pi,

User avatar
scruss
Posts: 3155
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: compile

Sat Feb 04, 2017 2:27 am

Code: Select all

sudo apt install build-essential
will install GCC. It's not quite the most recent version, but it'll get you going
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: compile

Sat Feb 04, 2017 8:13 am

curlyc wrote:anyone know a good compiler that works well on pi,
For which language?

Stewart has given you C/C++
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

jahboater
Posts: 5680
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: compile

Sat Feb 04, 2017 8:19 am

You didn't say what operating system, but the official and recommended OS is Raspbian.
https://www.raspberrypi.org/downloads/raspbian/
Both versions of Raspbian (the full one, and the Lite one) include a C/C++ compiler ready installed, which is GCC 4.9.
There is no need to install anything, just use it.

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: compile

Sat Feb 04, 2017 8:55 am

DougieLawson wrote:
curlyc wrote:anyone know a good compiler that works well on pi,
For which language?
Which sub-forum is this in Dougie ? :roll:
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: compile

Sat Feb 04, 2017 9:15 am

PeterO wrote:
DougieLawson wrote:
curlyc wrote:anyone know a good compiler that works well on pi,
For which language?
Which sub-forum is this in Dougie ? :roll:
PeterO
When you read the forum using search.php?search_id=unreadposts it's not obvious (due to the bits that are missing in the Raspite there).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Martin Frezman
Posts: 1009
Joined: Mon Oct 31, 2016 10:05 am

Re: compile

Sat Feb 04, 2017 9:30 am

When you read the forum using sear ... nreadposts it's not obvious (due to the bits that are missing in the Raspite there).
Yes, my thoughts exactly. Most people read via the "unread posts" avenue, which ignores sub-forums. You have to look carefully at the bottom of the screen to see which forum the post is in. The whole concept of sub-forums is moot here anyway (for, among other reasons, the fact that there are too many of them).

But what really surprises me is that Dougie uses "Raspite". I thought all the cool people pooh pooh Raspite and they all use the other one.
If this post appears in the wrong forums category, my apologies.

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: compile

Sat Feb 04, 2017 9:52 am

DougieLawson wrote: When you read the forum using search.php?search_id=unreadposts it's not obvious (due to the bits that are missing in the Raspite there).
If you want to continue to make a fool of yourself carry on ....
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

mattmiller
Posts: 2236
Joined: Thu Feb 05, 2015 11:25 pm

Re: compile

Sat Feb 04, 2017 10:17 am

I'm with Dougie - when I read the post, the part of forum its in doesn't leap out at me

And its a rarity that it matters - most requests for help don't normally rely on the forum section to be pertinent :)

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: compile

Sat Feb 04, 2017 11:53 am

mattmiller wrote:I'm with Dougie - when I read the post, the part of forum its in doesn't leap out at me
Well then you need to learn to look for it ! While not everyone manages to put their posts in the right sub-forum, the vast majority do go to the trouble to get it right. When they've gone to the trouble to get it right yoy should go to the trouble to look where it is before posting questions !
And its a rarity that it matters - most requests for help don't normally rely on the forum section to be pertinent :)
The forum section sets the context, without which people post silly questions and answers !
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: compile

Sat Feb 04, 2017 1:06 pm

mattmiller wrote:I'm with Dougie - when I read the post, the part of forum its in doesn't leap out at me

And its a rarity that it matters - most requests for help don't normally rely on the forum section to be pertinent :)
There's a whole raft of stuff missing in Raspite (specifically the breadcrumbs), but I use Raspite because Prosilver is just too ugly for words.

Image
Image
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

jahboater
Posts: 5680
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: compile

Sat Feb 04, 2017 4:33 pm

curlyc wrote:anyone know a good compiler that works well on pi,
Back on topic!

There is also clang/llvm. Unlike GCC it does need to be installed:

Code: Select all

sudo apt install clang
Both clang and GCC are very good compilers.

Return to “C/C++”