Page 1 of 2

error: wrong number of arguments specified for `deprecated'

Posted: Fri Mar 20, 2009 10:10 am
by mari-ion
Any time I try to compile I reciveve this error message from my compiler:
error: wrong number of arguments specified for `deprecated'


This is the only error repeated many times on different line throughout phidget21.

i use the code::blocks compiler

i tried to to remove all of the prototypes in the phidget21.h file that are deprecated :
like :

__declspec (deprecated ("Deprecated - use CPhidgetTextLED_getColumnCount")) __declspec (dllimport)
int __stdcall
CPhidgetTextLED_getNumColumns (CPhidgetTextLEDHandle, int *);


become :

__declspec __declspec (dllimport)
int __stdcall
CPhidgetTextLED_getNumColumns (CPhidgetTextLEDHandle, int *);



please help me, i am a french girl and it's very difficult to me

Re: error: wrong number of arguments specified for `deprecated'

Posted: Fri Mar 20, 2009 10:33 am
by fitchett
Just delete all lines that start with deprecated.

Chester

Re: error: wrong number of arguments specified for `deprecated'

Posted: Fri Mar 20, 2009 4:59 pm
by mari-ion
thank you but i did , and i doesn't work :(
have i to delete lines like this too ??:

Code: Select all

 __declspec  __declspec (dllimport)


i don't understand
thank you very much for your help

Re: error: wrong number of arguments specified for `deprecated'

Posted: Fri Mar 20, 2009 5:02 pm
by fitchett
You should delete all of this -
__declspec (deprecated ("Deprecated - use CPhidgetTextLED_getColumnCount")) __declspec (dllimport) int __stdcall CPhidgetTextLED_getNumColumns (CPhidgetTextLEDHandle, int *);

Re: error: wrong number of arguments specified for `deprecated'

Posted: Fri Mar 20, 2009 5:58 pm
by mari-ion
i have to remove this
__declspec __declspec (dllimport)
?? or no
it still not work :( maybe i don't have the good phidget21.h
i use the C++ language

thank you

Re: error: wrong number of arguments specified for `deprecated'

Posted: Fri Mar 20, 2009 7:34 pm
by fitchett
Your compiler does not understand deprecated, so you should remove the entire line, including the function call.

Chester

Re: error: wrong number of arguments specified for `deprecated'

Posted: Sun Mar 22, 2009 8:24 am
by mari-ion
it doesn't work i don't understand, could you send me the phidgets21.h with all the modifications?

thank you very much

Re: error: wrong number of arguments specified for `deprecated'

Posted: Sun Mar 22, 2009 8:37 am
by fitchett
What compiler are you using?

Chester

Re: error: wrong number of arguments specified for `deprecated'

Posted: Sun Mar 22, 2009 8:40 am
by mari-ion
I am using Code::Blocks :(

Re: error: wrong number of arguments specified for `deprecated'

Posted: Sun Mar 22, 2009 8:42 am
by mari-ion
i think it's good now!!!!!!!!

thank you vey very very much