RE: function exported from DLL compiled under Cygwin

2004-05-17 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Yu, Ted > Sent: 17 May 2004 17:47 > I exported the following function from DLL produced by Cygwin: > extern "C" int ted( float *data, int rows, int cols ) > { > return cols; > } > When I called this function from MSVC, I got exce

function exported from DLL compiled under Cygwin

2004-05-17 Thread Yu, Ted
I exported the following function from DLL produced by Cygwin: extern "C" int ted( float *data, int rows, int cols ) { return cols; } When I called this function from MSVC, I got exception. When I tried to initialize _impure_ptr in entry function, ld complained: djbfft2d.o(.text+0x1):djbff