Application works ok on SBC3 but I am trying to port to Windows 7 with Cygwin64. When compiling with g++ and Cygwin the
Minimal application compiles and links OK but segfaults on PhidgetVoltageInput_create. GDB reports no stack. Verified the windows Phidget Application works OK. What could I be missing? Compiled the following example with:
Code: Select all
g++ -std=c++11 -g -Wall -I"/cygdrive/c/Program Files/Phidgets/Phidget22" phidget_test.cpp -o phidgety -L"/cygdrive/c/Program Files/Phidgets/Phidget22" -lphidget22
Code: Select all
#include <phidget22.h>
int main() {
PhidgetVoltageInputHandle handle;
PhidgetVoltageInput_create(&handle); //segfault
return 0;
}