delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/06/00:39:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3B1DB4AD.803842FA@ece.gatech.edu>
Date: Wed, 06 Jun 2001 00:42:21 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Joa~o Miguel Soares <newted AT alfarrabio DOT um DOT geira DOT pt>
CC: cygwin AT cygwin DOT com
Subject: Re: Problems with DLL's
References: <Pine DOT LNX DOT 4 DOT 10 DOT 10106060451210 DOT 5137-100000 AT alfarrabio>

http://www.neuro.gatech.edu/users/cwilson/cygutils/dllhelpers-0.2.6.tar.gz

don't need to use dlltool anymore; use gcc -shared.

--Chuck

Joa~o Miguel Soares wrote:
> 
>  I'm trying to create a simple dll, but i'm having problems.
>  First i have created a file with a simple code:
> 
> dll.c
> 
> #include <windows.h>
> 
> int WINAPI
> dll_init(HANDEL h, DWORD reason, void *foo)
> {
>         return 1;
> }
> 
> main()
> {}
> 
>  Second,
>         gcc -c dll.c
> 
>  Third,
>         gcc -s -Wl,--base-file,dll.base -o dll.dll dll.o
> -Wl,-e,_dll_init AT 12
> 
>  ok! But in th fourth step:
>         dlltool --base-file dll.base --def dll.def --output-exp
> dll.exp --dllname dll.dll
> 
> /cygdrive/c/PROGRA~1/CYGWIN/BIN/DLLTOOL: Can't open def file: libga.def
> 
>  Do i have to create libga.def my self? If so how? What's the content?
> 
>  One more thing do i have to create include a main? I've tryed with out
> it, but failed. It tould me that "...no rerefence to WinMain AT 16...".
> 
>         Thanks for the help!
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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