This is the mail archive of the
cygwin
mailing list for the Cygwin project.
function exported from DLL compiled under Cygwin
- From: "Yu, Ted" <Ted dot Yu at kla-tencor dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Mon, 17 May 2004 09:46:40 -0700
- Subject: function exported from DLL compiled under Cygwin
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):djbfft2d.cpp: undefined reference to
`__imp_reent_data'
Which file should I link against to resolve this ?
Thanks
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/