X-Spam-Check-By: sourceware.org From: =?koi8-r?Q?=EF=D4=C5=C3_=E2=C1=D4=C9=CC=CF=D7=C9=DE?= To: cygwin AT cygwin DOT com Subject: =?koi8-r?Q?Re=3A_Re=3A_Using_a_DLL_built_with_cygwin_in_VC++?= Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 Date: Wed, 14 Feb 2007 17:03:31 +0300 Reply-To: =?koi8-r?Q?=EF=D4=C5=C3_=E2=C1=D4=C9=CC=CF=D7=C9=DE?= Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com >First of all, have you read the Cygwin FAQ (specifically, *all* the >questions in the Programming FAQ? Read the caveats about linking Cygwin >DLLs >into VC++ programs. Specifically, Q 16. >After you have understood what you're actually trying to do, you may want >to >try to follow the instructions in Q 16 to generate your .lib and .def >files, >and then make sure to put in the correct crt hooks, etc. I've read all of the Cygwin's programming faq, I've tried the method they described in "How can I build a relocatable dll?", first of all, there's no __imp_reent_data symbol in Cygwin dll, but there's reent_data, I used it instead, I've successfuly compiled and linked, but when I run my app I get an access violation writing at address 0x0, VS2005's debugger says that it's cygwin.dll is trying to do so. Then, I tried to remove all Cygwin API calls from my gcc compiled DLL and recompiled my app, everything worked fine. This exception occurs only if there're Cygwin API calls in DLL. So, what shall I do ? -- 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/