I'm new to Linux and I need some help!
I am trying to compile the code taken from this post to the linux-kernel mailing list.
I have pasted the file into Libre Office and saved it as pairing_tool.c (Not as pairing_tool.c.odt. I have renamed the file to pairing_tool.c.)
But when I use this command line: gcc -o pairing_tool pairing_tool.c in the terminal, I get many errors.
- What did I do wrong?
- Should I paste the text into a special text editor?
Also just to be clear, I've used the text included only in between
#include <linux/input.h>
and
return 0;
}
So I haven't put the comments. I think it is good this way, is it?
trythis.c. (2) Opentrythis.cwith thegedittext edit. I think you will immediately understand why you had so many compile errors. – irrational John Jun 6 '12 at 0:41