Hi, I've been able to compile and build a stand alone simple blinky using the BCM2835 library on a RPI3 B+ and now wish to use similar code in a much bigger existing c++ project which uses cmakelists.txt.
The new bigger code builds ok but when it gets to CXX linking I get a bunch of errors like this
undefined reference to `bcm2835_gpio_write'
I suspect this is because cmakelists.txt doesn't know where to find the bcm2835 information.
In my original simple C program I had them listed like this
#include <bcm2835.h>
#include <stdio.h>
I've spent a lot of time googling but without success largely due to my lack of knowledge !
Any ideas / helps ?
Thanks Tim
The new bigger code builds ok but when it gets to CXX linking I get a bunch of errors like this
undefined reference to `bcm2835_gpio_write'
I suspect this is because cmakelists.txt doesn't know where to find the bcm2835 information.
In my original simple C program I had them listed like this
#include <bcm2835.h>
#include <stdio.h>
I've spent a lot of time googling but without success largely due to my lack of knowledge !
Any ideas / helps ?
Thanks Tim
Statistics: Posted by timdf911 — Sat Jan 17, 2026 3:53 pm — Replies 0 — Views 17