Need Help for compiler error

18 Jan 2012

Hi guys, I need some help with my program. I keep get error for this constructor

irKey(PinName col1, PinName col2, PinName col3, PinName col4, PinName row1, PinName row2, PinName row3, PinName row4): 
      _colbus(col1,col2,col3,col4), _row1(row1),_row2(row2),_row3(row3),_row4(row4)   {
                       }

The compiler always keep saying that invalid redeclaration of member function "mbed::irKey::irKey(PinName, PinName, PinName, PinName, PinName, PinName, PinName, PinName)" (declared at line 22 of "InterruptClass2/itrclass2.h")" in file "/itrclass2.cpp", Line: 6, Col: 4

I don't really understand what does this error means, hope you guys can help me

18 Jan 2012

irKey::irKey(...) : ...

18 Jan 2012

I had tried edit it but it still have this error, i not sure why

18 Jan 2012

you should post these lines from header and cpp