Subj : Re: Has anyone tried Warrick's SpiderMonkey C++ Bindings ? To : netscape.public.mozilla.jseng From : warrick Date : Fri May 14 2004 05:06 am Hi Chris, Just noticed this. I only developed the code for MSVC++ 7 as template support in MSVC++ 6 is patchy. I haven't checked but it should compile fine with the latest versions of GCC if that's an option. Doing a version for MSVC6 would probably be more pain then it's worth at the moment unfortunately :( Warrick "Chris" wrote in message news:... > Hi, > > http://195.137.84.121/Warrick/Geek/SpiderMonkey/index.htm > > I'm trying to use Warrick's C++ Binding example to My C++ Classes. > But, On MSVC 6.0 . Error is generated in compile time like this. > > d:\!project\testjs\functionbindings.inc(69) : error C2995: 'CallFunction' : > template function has already been defined > d:\!project\testjs\functionbindings.inc(16) : see declaration of > 'CallFunction' > d:\!project\testjs\functionbindings.inc(106) : error C2954: template > definitions cannot nest > d:\!project\testjs\functionbindings.inc(140) : error C2954: template > definitions cannot nest > ... > > How can I compile this sample ? > > Chris .