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: 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 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: References: Date: Mon, 30 Jun 2014 15:24:49 +0200 Message-ID: Subject: Re: cygwin DLL and mingw main From: Jan Nijtmans To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes 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