PilotF3K
Posts: 3
Joined: Sat Oct 24, 2015 3:55 pm

Configuring gnu gcc compiler

Mon Oct 26, 2015 8:34 pm

I use Code::Blocks and GNU GCC compiler for ARM, but I don`t now how correctly configure it for raspberry pi 2 b+. How correctly set Compiler flags?

pizzaboy150
Posts: 18
Joined: Sat Sep 05, 2015 11:03 am

Re: Configuring gnu gcc compiler

Wed Oct 28, 2015 5:11 pm

Are you asking how to cross compile? ie compile the program on say a windows or linux machine?

pizzaboy150
Posts: 18
Joined: Sat Sep 05, 2015 11:03 am

Re: Configuring gnu gcc compiler

Wed Oct 28, 2015 5:16 pm

You may find this useful for the compiler flags...

http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html

Go to Project -> Build Options -> Compiler Settings tab -> Other Options and add -march=armv6 (or raspberry pi 2 -march=armv7)

PilotF3K
Posts: 3
Joined: Sat Oct 24, 2015 3:55 pm

Re: Configuring gnu gcc compiler

Wed Oct 28, 2015 6:51 pm

pizzaboy150 wrote:Are you asking how to cross compile? ie compile the program on say a windows or linux machine?
i use Linux machine

Return to “C/C++”