More DLL Woes

David Coe david@coent.demon.co.uk
Wed Jun 4 21:50:00 GMT 1997


G'day folks!
Running on NT4, B18 with Sergey's patched cygnus.dll / libcygwin.a and
Mumit Khan's ported G77, it's proved very simple to get the PGPLOT
libraries running on X11. Getting the equivalent DLL's working has been
much more problematic even though the simple and relocatable examples on
the Cygnus website come up fine for me.
Using the attached script gives references (in the 2nd and 3rd ld) to a
missing WinMain@16. Strange - these aren't Windows routines. Changing
the LIBS variable to ... -lc -lcygwin ... fills the missing reference.
Equally strange, I thought libcygwin already contained the libc bits. 
Despite the fact that the 2nd ld generates an exception (also attached),
all this does produce an apparently working pgplot.dll even if I
wouldn't trust it all that far! My question is, am I a victim of:
- my own ignorance about building gnu-win32 dlls? 
- incorrectly mixing F77 and C code in dlls?
- residual bugs in cygwin or its toolchain?
Any helpful answers gratefully received!
-- 
Dr David Coe			 \=\
58 Fairlawn Drive, East Grinstead \=\ Tel +44 1342 326860
West Sussex, RH19 1NT, United Kingdom \=\ Fax +44 1342 316019


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /