error: wrong number of arguments specified for `deprecated'

Comments & issues
mari-ion

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

Postby mari-ion » Mon Mar 23, 2009 4:35 am

do you now where i can find help to use the " MINISTICK SENSOR" i find help for all the phidgets except this one !!

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 » Mon Mar 23, 2009 7:52 am

You take the 0-1000 values from the SensorValue property / event handlers on the interfacekit.

mari-ion

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

Postby mari-ion » Mon Mar 23, 2009 10:50 am

when i write this to open my phidgets i have this error::

C:\Users\Marion\Desktop\3DGame\Project\Projet\CEventReceiver.cpp|35|undefined reference to `__imp__CPhidgetInterfaceKit_create@4'|

and

C:\Users\Marion\Desktop\3DGame\Project\Projet\CEventReceiver.cpp|39|undefined reference to `__imp__CPhidget_waitForAttachment@8'|
and

C:\Program Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\libmingw32.a(main.o):main.c:(.text+0x104)||undefined reference to `_WinMain@16'|
and

C:\Users\Marion\Desktop\3DGame\Project\Projet\CEventReceiver.cpp|35|undefined reference to `__imp__CPhidgetInterfaceKit_create@4'|



#include <phidgets/phidget21.h>
#include <stdio.h>
#include <stdlib.h>

int main(void)


{

CPhidgetInterfaceKitHandle ifKit = 0; //Declare an InterfaceKit handle
CPhidgetInterfaceKit_create(&ifKit); //Create the InterfaceKit object
//More code goes here

}

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 » Mon Mar 23, 2009 11:13 am

How are you adding phidget21.lib to your linker path?

Chester

mari-ion

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

Postby mari-ion » Mon Mar 23, 2009 11:22 am

yes i had add the linker of the phidget21.lib (which is in the lib folder of my IDE)

i don't understand! :(

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 » Mon Mar 23, 2009 1:40 pm

Does your application compile / run without phidgets related code in it?

Chester

mari-ion

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

Postby mari-ion » Tue Mar 24, 2009 4:40 am

yes my application run and work , but when i add the phidgets i have big problems


Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests