On 10/03/2020 15:37, Jesper Kaas wrote:
> On Tue, 10 Mar 2020 13:21:25 +0000, The Natural Philosopher
> wrote:
>
>>> So I added the text "-lwiringPi" to the compile and build commands in
>>> Geany. Now I only get the following error message when running a
>>> build:
>>> g++ -wall -o -lwiringPi "blink" "blink.c" (in directory:
>>> /home/pi/wiringpi/examples)
>>> g++: error: blink: no such file or directory
>>> Compilation failed.
>>> There is a file blink.c in directory home/pi/wiringpi/examples, so
>>> something else is nagging Geany, but what?
>>>
>>> Best regards.
>>>
>> wrong order
>>
>> .... -o blink -lwiringpi blink.c
>
> Now I have success thanks to The Natural Philosopher, Theo and Martin
> Gregorie. Thank you for taking your time to answer. It really was a
> case of RTFM on my side, but the manual was so HUGE :-)
>
We have all done it...
It's why Makefiles were invented, as, once edited, you just type 'make'
and correct the latest spew of errors until it all works
Only geeks want to understand the command line syntax of gcc. The rest
of is get it right ONCE and copy and edit that makefile :-)
> Best regards.
>
Thx
--
There’s a mighty big difference between good, sound reasons and reasons
that sound good.
Burton Hillis (William Vaughn, American columnist)
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|