Jesper Kaas 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?
You're trying to compile the source files called 'blink' and 'blink.c' and
create an output file called '-lwiringPi'. In other words, your command
line is the wrong way round. It should be:
g++ -Wall -lwiringPi -o blink blink.c
I'd suggest writing a Makefile to run the compilation and getting geany to
invoke that. I wouldn't trust editors to know how to compile things right
themselves (unless they're an IDE, in which case they have a million
dialogues you need to fill out to get it to build)
Theo
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|