I'm trying to build a proof-of-concept gears extension and I need to
link to winmm.lib. I've added

$(BROWSER)_LINK_EXTRAS += Winmm.lib

to the Makefile, but I get this build error:

make[1]: *** No rule to make target `Winmm.lib', needed by `bin-dbg/
win32-i386/ie/gears.dll'.  Stop.

The default Gears build env has several copies of winmm.lib located at
directories in the %LIB% env var, but none in the %LIBPATH% env var.

I tried adding

$(BROWSER)_SHARED_LINKFLAGS += /LIBPATH:"$(MSSdk)\Lib"

to the Makefile, but I still get the same error.

I also tried adding

C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib

to the %LIBPATH% env var, same error.

Can someone tell me how to link to an additional win32 library?

Reply via email to