Hallöchen!
I try to use a function from a cygwin DLL in a LabVIEW 7.0 VI. So
I wrote
void funcName(double values[], long number_values)
{
for (int i=0; i < number_values; i++) values[i] /= 2.0;
}
to the file test.cc and said (cygwin gcc 3.3.1)
gcc -c test.cc
gcc -shared -o hall.dll test.o
Then I included it as a shared DLL in LabVIEW, added the correct
parameter sequence and return value. The name of the function was
a little bit different (Z8funcNamePdl).
But: LabVIEW crashes every single time. Not matter what I say about
calling convention or reentrance. As soon as the "configure" window
is closed, *all* LabVIEW windows are closed.
What am I doing wrong?
Thank you!
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa
vetus