delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/06/30/09:25:16

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=TX
OcCEOvYNtNi7ULDadfw6m9S0TEJwP9t0IwaKPtrKcUOeRg+xrVosqxbQW5fuQCzK
v6rD7YUXo6lx6dJJd9vb8Zt/6GUxE1s4G1414pmn7PkesSlOEt6PyQXd1SivuYaD
nO/g1Aawlyhu4C4ekKYwApaJAnl2gRLGdeDb9wymA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=O1Skqh8X
Hqu9jzz6BHTRD2yUeBc=; b=gIlV64RMhk4rY3TImBb2pE1YuIO4I/zSFYmo5LK7
BjkRdmxDmRMIqjGnI51om7zolN7yKoJT0D3yFu7P1qtDyX6RHl6EMJ9BPvYS2qOI
gEZUD1sbxCZVqBSjvnXkk6mK5qI9Ngo+NokrAhq7MFZzRxCNvbZ9TEja1Cc7Upke
/Qg=
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
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
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)
In-Reply-To: <loom.20140630T141818-298@post.gmane.org>
References: <loom DOT 20140630T141818-298 AT post DOT gmane DOT org>
Date: Mon, 30 Jun 2014 15:24:49 +0200
Message-ID: <CAO1jNwtgR0ifXHTj26O9PNy4rbBMskfhpN=EEH12RWCHYh3Brw@mail.gmail.com>
Subject: Re: cygwin DLL and mingw main
From: Jan Nijtmans <jan DOT nijtmans AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

2014-06-30 14:25 GMT+02:00 Soren Hein <soren DOT hein AT gmail DOT com>:
> 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:
    <http://cygwin.com/faq/faq.html#faq.programming.msvs-mingw>

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

- Raw text -


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