error: wrong number of arguments specified for `deprecated'

Comments & issues
mari-ion

error: wrong number of arguments specified for `deprecated'

Postby mari-ion » Fri Mar 20, 2009 10:10 am

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

fitchett
Site Admin
Posts: 263
Joined: Fri Dec 05, 2003 3:45 pm
Location: Canada
Contact:

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

Postby fitchett » Fri Mar 20, 2009 10:33 am

Just delete all lines that start with deprecated.

Chester

mari-ion

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

Postby mari-ion » Fri Mar 20, 2009 4:59 pm

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

fitchett
Site Admin
Posts: 263
Joined: Fri Dec 05, 2003 3:45 pm
Location: Canada
Contact:

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

Postby fitchett » Fri Mar 20, 2009 5:02 pm

You should delete all of this -
__declspec (deprecated ("Deprecated - use CPhidgetTextLED_getColumnCount")) __declspec (dllimport) int __stdcall CPhidgetTextLED_getNumColumns (CPhidgetTextLEDHandle, int *);

mari-ion

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

Postby mari-ion » Fri Mar 20, 2009 5:58 pm

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

fitchett
Site Admin
Posts: 263
Joined: Fri Dec 05, 2003 3:45 pm
Location: Canada
Contact:

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

Postby fitchett » Fri Mar 20, 2009 7:34 pm

Your compiler does not understand deprecated, so you should remove the entire line, including the function call.

Chester

mari-ion

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

Postby mari-ion » Sun Mar 22, 2009 8:24 am

it doesn't work i don't understand, could you send me the phidgets21.h with all the modifications?

thank you very much

fitchett
Site Admin
Posts: 263
Joined: Fri Dec 05, 2003 3:45 pm
Location: Canada
Contact:

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

Postby fitchett » Sun Mar 22, 2009 8:37 am

What compiler are you using?

Chester

mari-ion

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

Postby mari-ion » Sun Mar 22, 2009 8:40 am

I am using Code::Blocks :(

mari-ion

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

Postby mari-ion » Sun Mar 22, 2009 8:42 am

i think it's good now!!!!!!!!

thank you vey very very much


Return to “General”

Who is online

Users browsing this forum: No registered users and 2 guests