On 10/03/2020 10:24, Jesper Kaas wrote:
> I use Geany for editing code, compiling, building and running.
> Compiling blink.c ends with "Compilation ended successfully". But
> trying a Build ends with errormessages on all the functions that
> should be in the library wiringPi.h. And a line with #include
> WiringPi.h is in the blink.c code. Example:
> extern void pinMode (int pin, int mode)
> Here is a clip of some of the errormessages from Geany:
> -undefined reference to 'wiringPiSetup
> -undefined reference to 'pinMode
> -undefined reference to 'digitalWrite
>
> A look at the source code wiringPi.c for the library shows that the
> functions are declared and defined, and they can also be found in
> wiringPi.h.
> So what is wrong?
Are these messages happening at compile time or at link time?
I suspect its not that these are not defined in the header but that you
aren't linking in the wiringPi library at link time...
--
The urge to save humanity is almost always a false front for the urge to
rule.
– H. L. Mencken, American journalist, 1880-1956
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|