On Sun, 15 Mar 2020 08:28:19 +0100, "R.Wieser"
wrote:
>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.
>
Rudy:
>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
>
Hi Rudy,
Yes, I had not put in "-lwiringPi in Geanys build-command. I now have
this:
gcc -Wall -lwiringPi -o "%e" "%f"
, and things started working perfect.
Best regards
--
Jesper Kaas - jesperk@neindanke.online.no
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|