I am trying to build a small, gecko-based app. I keep the mozilla dist bins segregated from the rest of my project in a subdir (gecko). I have been using the (new for VC6.0) delayload feature to link to xpcom.lib, so I can alter the app path to include the gecko directory before making any xpcom calls. Works like a charm....in DEBUG mode. Unfortunately, in release mode, I get the following link error in my code: LINK : fatal error LNK1194: cannot delay-load xpcom.dll due to import of data symbol "__declspec(dllimport) const nsQueryInterface::`vftable'" (__imp_??_7nsQueryInterface@@6B@); relink without /DELAYLOAD:xpcom.dll NMAKE : fatal error U1077: 'link' : return code '0x4aa' Stop. Any thoughts? Solution? Is there a bug in nsCOMPtr.h that is causing the disallowance of delayloading? background info: Win32 app, Visual C++ 6.0, Service Pack 4 Thanks! Ken
