delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/18/16:39:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3EA06290.5070308@nordrhein.de>
Date: Fri, 18 Apr 2003 22:39:44 +0200
From: Armin Diehl <diehl AT nordrhein DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: dll creation
References: <3EA02548 DOT 8040308 AT nordrhein DOT de> <Law10-OE40ivee6v3xk000050df AT hotmail DOT com>
In-Reply-To: <Law10-OE40ivee6v3xk000050df@hotmail.com>

Martin wrote:

 > Please display the code that calls the DLL and how it calls the DLL 
function

it is a simple call hello. Because hello has no params, the calling 
convention dosent matter. It is not a calling convention problem because 
it crashed in hello and never returned.

> see bottom
> ----- Original Message -----
> From: "Armin Diehl" <diehl AT nordrhein DOT de>
> To: <cygwin AT cygwin DOT 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
>>
>>
>>
> 




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