This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: error trying to build very simple dll


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]