This is the mail archive of the
mailing list for the Cygwin project.
Re: use of POSIX emulation from within a DLL by a non-cygwin app
- To: Rolando.Blanco@ubc.ca
- Subject: Re: use of POSIX emulation from within a DLL by a non-cygwin app
- From: Mumit Khan <email@example.com.EDU>
- Date: Fri, 30 Jul 1999 13:27:02 -0500
- cc: firstname.lastname@example.org
Rolando Blanco <email@example.com> writes:
> Hi all,
> I've generated a DLL that uses (cygwin) POSIX emulation. test programs
> that link to the DLL work ok if compiled with gcc. When compiling the same
> test program with MSVC++ I get a 'The instruction at <<Address>>
> referenced memory at <<Address>>. The memory could not be "read".' Is
> there any workaround to this problem ?.
You cannot use a Cygwin DLL from a MSVC application in general. It works
in a limited set of cases, and even those are full of pitfalls. The
problem is that Cygwin DLL is not properly initialized when loaded from
a non-cygwin application, and everything is liable to fail.
You can take a look at my jni and excel applications for an example of
how *some* Cygwin DLLs can be made to work with non-cygwin apps. Also,
search the mailing list for "noncygwin".
Want to unsubscribe from this list?
Send a message to firstname.lastname@example.org