delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/14/09:04:08

X-Spam-Check-By: sourceware.org
From: =?koi8-r?Q?=EF=D4=C5=C3_=E2=C1=D4=C9=CC=CF=D7=C9=DE?= <papasha_papovich AT mail DOT ru>
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?= <papasha_papovich AT mail DOT ru>
Message-Id: <E1HHKjL-0005jg-00.papasha_papovich-mail-ru@f15.mail.ru>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019