From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson) Subject: Re: Building DLLs 26 Feb 1997 04:45:34 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199702261117.WAA18337.cygnus.gnu-win32@murlibobo.cs.mu.OZ.AU> Content-Type: text Original-To: balay AT mcs DOT anl DOT gov (Satish Balay) Original-Cc: gnu-win32 AT cygnus DOT com (gnu-win32) In-Reply-To: from "Satish Balay" at Feb 25, 97 06:36:04 pm X-Mailer: ELM [version 2.4 PL24] Original-Sender: owner-gnu-win32 AT cygnus DOT com Satish Balay, you wrote: > > I tried using Makefile.DLLs and had a few problems. > (gcc-Beta-17.1) > > ld could'nt understand the -L*** -l options. That's a bit strange. What error are you getting, exactly? > I had to change linker form ld to gcc > > Once i made this change things seem to fall in place. > However I could'nt build my libs as dlls as there were > a bunch of unresolved symbols. > > Q: In a case where liba.a -> libb.a -> libc.a ->libd.a > How do I create liba.dll, libb.dll, libc.dll? and not libd.dll > Any Idea if this is possible? Yes, you just need to set the LDLIBS-foo variable to link in the appropriate libraries (and of course you need to add the appropriate dependencies to your makefile, so that make doesn't try to link with a library before it has been built). E.g. if libfoo.dll uses libbar.dll, then you need to link it with `-lbar.stubs'. LDLIBS-foo = -lbar.stubs You might also need `LDFLAGS = -L.' (I forget whether `.' is in the default search path). -- Fergus Henderson | "I have always known that the pursuit WWW: | of excellence is a lethal habit" PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3 | -- the last words of T. S. Garp. - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".