Page 1 of 1

Phidget Spatial Data Logging in excel

Posted: Wed Jun 07, 2017 12:01 pm
by deep3694
Hello guys,
I am trying to follow the steps shown on the website for C++ for phidget spatial data logging.
I am using windows 10 64 bit and I have installed all the necessary drivers and libraries.
I am trying to compile using latest version of Cygwin.

However when I am trying to compile it I am getting following error:
$ cd "/cygdrive/c/Program Files/Phidgets"

Deep@DESKTOP-ILBUL8L /cygdrive/c/Program Files/Phidgets
$ gcc sample_code.c -lphidget21 -o sample_code
sample_code.c:6:0: warning: "__stdcall" redefined
#define __stdcall
<built-in>: note: this is the location of the previous definition
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lphidget21
collect2: error: ld returned 1 exit status

I have tried putting a space between l and phidget21 but its not working.
Please help me out in overcoming this error, I am new to this so if you know how to overcome please answer in simple steps. Thank you.