Re: link a DLL into a XPCOM module

Doug Turner <[email protected]> Mon, 14 Oct 2002 12:44:15 -0700
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
eileen zishuang wrote:

> Hi,
>
> I am trying to link an external dll into one XPCOM module, which I 
> wrote by
> myself according to the XPCOM sample. But the makefile.win under XPCOM
> directory is mysterious, anyone can give me a hint how to link that 
> dll into
> the makefile?
>
> Thank you very much.
>
>
>
this will only work on the mozilla 1.0 branch since we moved away from 
the nmake build system (instead of makefile.win on windows, both windows 
and unix use Makefile.in).

Try adding this:

LLIBS=\
   $(DIST)\lib\xpcom.lib \
   $(LIBPLC) \
   <path-to-lib>\mylib.lib \     <------
   $(NULL)


where the line indicated above points to the library you want linked 
into your sample component.

--
Doug Turner
[email protected]