TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: R.WIESER
date: 2020-03-15 08:28:00
subject: Re: Problem with wiringPi

Jesper,

> 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.

I hope you do know/remember that the actual building also needs to be told
which library to use (using "-lwiringPi" as an argument to GCC) ?  The
header file just describes which functions and such should be in that
library.

The thing is, Geany is just a front-end for GCC, so you need to dive into it
and alter the "build" commandline:

How to do it:

Geany toolbar -> "build" -> "Set build commands" -> "C commands" ->
"build" -> textbox directly right of it (starting with "gcc -Wall") Append
"-lwiringPi" to the end of that line.

Hope that helps.

Regards,
Rudy Wieser

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.