On Tue, 10 Mar 2020 12:20:16 +0100, Jesper Kaas
wrote:
>>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...
I am getting closer now:
Did a new build of wiringPi and saw the following message in the
terminal:
NOTE: To compile programs with wiringPi, you need to add:
-lwiringPi
to your compile line(s) To use the Gertboard, MaxDetect, etc.
code (the devLib), you need to also add:
-lwiringPiDev
to your compile line(s).
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.
--
Jesper Kaas - jesperk@neindanke.online.no
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|