Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Originating-IP: [12.254.208.112]
X-Originating-Email: [mgainty@hotmail.com]
From: "Martin" <mgainty@hotmail.com>
To: "Armin Diehl" <diehl@nordrhein.de>, <cygwin@cygwin.com>
References: <3EA02548.8040308@nordrhein.de>
Subject: Re: dll creation
Date: Fri, 18 Apr 2003 10:29:17 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <Law10-OE40ivee6v3xk000050df@hotmail.com>
X-OriginalArrivalTime: 18 Apr 2003 16:29:44.0710 (UTC) FILETIME=[B86A2260:01C305C7]

see bottom
----- Original Message -----
From: "Armin Diehl" <diehl@nordrhein.de>
To: <cygwin@cygwin.com>
Sent: Friday, April 18, 2003 9:18 AM
Subject: dll creation


> i tried a small sample and i always get a protection fault in
> cygwin1.dll if i call the funtion in the dll:
>
> #include <stdio.h>
>
> int hello ()
> {
>    printf ("hello\n");
> }
>
> gcc -c test.c
> gcc -shared -o test.dll test.o
>
> will create the dll. If hello is called, i get a protection fault in
> cygwin1.dll at 000C8C81, Read of address 00000144.
>
> I already updated everything today. This happens on xp. Is there some
> kind of init needed ? (Btw, the calling program does not use the cygwin
dll)
>
> gcc --verion: gcc (GCC) 3.2 20020927 (prerelease)
> ld -V: GNU ld version 2.13.90 20030308
>
>
>
Please display the code that calls the DLL and how it calls the DLL function
Martin

--
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/

