[SOLVED] Libraries that i download wont compile .

retrolefty:

so where i can put the user download libraries ? YES i always restart my IDE after add downloaded libraries
before i got this problem

3rd party and user written libraries should be loaded into a folder named library in the user's sketch directory, If one isn't there then you need to create this library folder. Then specific downloaded libraries are saved in a folder with the same name as the xxx.h file along with any other files used by the library.

If you do install 3rd party libraries into the arduino core section the problem is that if and when you ever upgrade to a newer version of the IDE you will lose all your 3rd party libraries unless you manual copy them before you upgrade the IDE and then manual re-install them into the IDE's core library folder. The user's sketch directory is not erased when one upgrades the IDE so all your 3rd party libraries are not disturbed.

this is how I i try the importing via IDE . not manually copy and paste to directory :

1st. i reinstall my IDE
2nd.I open my IDE , sketch -> Import Library -> automatically my downloaded libraries located in my document/Arduino/libraries right ?
i check the file name before i upload the sketch
folder name DFR_Key

the name of .h & .cpp file , same with the folder name "DFR_Key"
but when i tried to upload the sketch

C:\Users\gissagiswara\Documents\Arduino\libraries\DFR_Key\DFR_Key.cpp: In constructor 'DFR_Key::DFR_Key(int)':
C:\Users\gissagiswara\Documents\Arduino\libraries\DFR_Key\DFR_Key.cpp:29: error: 'def' was not declared in this scope
C:\Users\gissagiswara\Documents\Arduino\libraries\DFR_Key\DFR_Key.cpp:29: error: 'DFRKEY' was not declared in this scope
C:\Users\gissagiswara\Documents\Arduino\libraries\DFR_Key\DFR_Key.cpp: At global scope:
C:\Users\gissagiswara\Documents\Arduino\libraries\DFR_Key\DFR_Key.cpp:84: error: no 'void DFR_Key::setARV(int, int)' member function declared in class 'DFR_Key'

that error message always shown

Thank you for all your help