bcm2835.h and code::blocks?

234 views
Skip to first unread message

ich_halt

unread,
May 25, 2013, 7:40:42 AM5/25/13
to bcm...@googlegroups.com
Hello,

are there any instructions to get bcm2835 with code::blocks work?

I try adding "-l bcm2835" in Settings->Compiler/Debugger->Other options


Also in the project settings.


But if I use for example bcm2835_delay(400); I get an error that the function is an "undefined reference"

Can you help me with that?

You can get Code::Blocks in the Pi Store for free.

PS: In geany -l bcm2835 works, but the compiler is very creepy (e.g. breakpoints and so on..)

ich_halt

unread,
May 25, 2013, 8:58:06 AM5/25/13
to bcm...@googlegroups.com
Solved at my own: add the library in /usr/locale/lib/ in the menu ettings->Compiler/Debugger->linker settings
Reply all
Reply to author
Forward
0 new messages