delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/11/16:59:34

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: <3B4CB9EE.1030301@ece.gatech.edu>
Date: Wed, 11 Jul 2001 16:41:18 -0400
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.1) Gecko/20010607 Netscape6/6.1b1
X-Accept-Language: en-us
MIME-Version: 1.0
To: Robert Cordingley <cord AT ragesoft DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: error trying to build very simple dll
References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20010711145916 DOT 00aa2d60 AT earth DOT he DOT net>

You're using some old documentation :  while dlltool works, most of its 
functionality has been absorbed directly into ld (e.g. gcc -shared) 
Take a look at:

http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/dll-stuff/

For more up-to-date examples.

--Chuck


Robert Cordingley wrote:

> Trying to build a very simple little dll, I get the following error:
> 
> $ dlltool --def gettz.def --output-exp gettz.exp --output-lib gettz.a 
> --dllname gettz.dll
> $ gcc -c gettz.c
> $ ld -o gettz.dll gettz.exp gettz.o
> ld: warning: cannot find entry symbol _mainCRTStartup; defaulting to 
> 00401000
> gettz.o(.text+0xc):gettz.c: undefined reference to `time'
> gettz.o(.text+0x20):gettz.c: undefined reference to `localtime'
> gettz.o(.text+0x28):gettz.c: undefined reference to `_imp___tzname'
> 
> I'm not at all experienced with Cygwin development, and only a bit more 
> experienced on actual unix.  Please forgive me if this is painfully 
> obvious to the more knowledgeable folks on here.
> 
> Robert
> 
> 
> -- 
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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