import library , but compiling error

Hi, I am a new learner on programming code.
I follow this guide (http://www.arduino.cc/en/Guide/Libraries) to do Manual installation

  1. copy library folder named pong to "Documents\Arduino\libraries\”
  2. so I can see pong under Sketch-> import library -> pong
  3. But when it compiles, it pops up error message. Why? Is there wrong on import library?

attachment has detail steps, and also with library.

the code I write:
#include "oled/Edison_OLED.h"
#include "gpio/gpio.h"

void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}

Hope someone kindly pull me out. thanks!

pong.zip (36.2 KB)

1)Please put your code in code tags, [ code ] and [ /code ]
2)Please post your error
3)Your library is missing the keywords.txt file. Arduino is wierd, it needs this extra file.
Here is a thread for more help, but Im sure you can find examples elsewhere, http://forum.arduino.cc/index.php?topic=149418.0

What is your error message ?

here's the error:

sketch_jun09c.ino:1:30: fatal error: oled/Edison_OLED.h: No such file or directory
compilation terminated.
Error compiling.

Arduino is wierd, it needs this extra file.

No it doesn't. All the file does is to provide a list of keywords that should be displayed in colour in the IDE. The library will work perfectly well without it

sketch_jun09c.ino:1:30: fatal error: oled/Edison_OLED.h: No such file or directory

Do you have the file and, if so, where is it located ?

Wait...seriously, you don't need keywords.txt...all this time...

I looked at KEYWORDS.TXT - Programming Questions - Arduino Forum
and it says

The function of it use is in the name, KEYWORDS. If you make a library, you need to make a keywords file so the Arduino can recognize what your doing. Every library has one, and without it you may have problems.

but this is contradictory to what the main site says, so your right...

Also, please post the FULL error, not the first line, I feel like there is a lot more...

The keywords.txt mechanism is a waste of time. Try starting a new program and typing attach anywhere. The word will turn red because it is in a keywords.txt file in at least one library on your system. It is certainly in the Servo library keywords.txt file and you don't even need to #include Servo.h to see the colour.

The mechanism could be improved so that only keywords from libraries actually #included in the program were coloured or even better to provide keyword completion for #included libraries but I assume that it will never happen.