From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14532 invoked by alias); 30 Jun 2014 13:25:00 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 14503 invoked by uid 89); 30 Jun 2014 13:24:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f172.google.com Received: from mail-lb0-f172.google.com (HELO mail-lb0-f172.google.com) (209.85.217.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 30 Jun 2014 13:24:54 +0000 Received: by mail-lb0-f172.google.com with SMTP id c11so5962571lbj.3 for ; Mon, 30 Jun 2014 06:24:49 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.112.24.167 with SMTP id v7mr22738237lbf.19.1404134689435; Mon, 30 Jun 2014 06:24:49 -0700 (PDT) Received: by 10.114.70.49 with HTTP; Mon, 30 Jun 2014 06:24:49 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Jun 2014 13:25:00 -0000 Message-ID: Subject: Re: cygwin DLL and mingw main From: Jan Nijtmans To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00445.txt.bz2 2014-06-30 14:25 GMT+02:00 Soren Hein : > If I compile (1) with cygwin and (2) with mingw, the resulting program > segfaults when run. .... > Why does it segfault? It's driving me nuts. Probably it crashes because the internals of cygwin1.dll are not initialized. Somehow you will need to call the function cygwin_dll_init() during initialization (if it's possible at all what you are trying to do .....). See: Regards, Jan Nijtmans -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple