Manage to get rid of the error by removing the dashes. However when i try to verify the program in the example that came with the library, the following error occur
CapacitiveSensor does not name a type
CapacitiveSensorSketch:12: error: 'CapacitiveSensor' does not name a type
CapacitiveSensorSketch.pde: In function 'void loop()':
CapacitiveSensorSketch:22: error: 'cs_4_2' was not declared in this scope
I have already checked the IDE sketch menu/import library and the capacitivesensor library is listed under the Contributed section so that means that i have save the library in the correct place but why does the error above occur?