|
From: Raymond R. <ra...@ba...> - 2008-12-16 16:30:53
|
Mark Hellegers wrote: >> Below is the error that I'm getting when using a very simple makefile to >> > try > >> to build Google's V8 Javascript engine under Haiku at the moment: >> >> /Prometheus/dev/v8/src/api.cc: In method `void >> v8::FunctionTemplate::AddInstancePropertyAccessor(v8::Handle<v8::String>, >> v8::Handle<v8::Value> (*)(v8::Local<v8::String>, const v8::AccessorInfo >> > &), > >> void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const >> > v8::AccessorInfo > >> &), v8::Handle<v8::Value>, v8::AccessControl, v8::PropertyAttribute)': >> /Prometheus/dev/v8/src/api.cc:705: static_cast from >> > `v8::PropertyAttribute' > >> to `PropertyAttributes' >> /Prometheus/dev/v8/src/api.cc: In method `bool >> v8::Object::Set(v8::Handle<v8::Value>, v8::Handle<v8::Value>, >> v8::PropertyAttribute = None)': >> /Prometheus/dev/v8/src/api.cc:1734: static_cast from >> > `v8::PropertyAttribute' > >> to `PropertyAttributes' >> make: *** [src/api.o] Error 1 >> > > It looks like the static_cast is failing, but it is hard to tell without > more information. > So that would mean it is not an STL issue. It might still be a compiler > issue, though. > > Mark > > I still haven't really dug into the code, but I think the PropertyAttribute and PropertyAttributes classes are both based on templates; it's been a couple weeks since I really looked at it, and even then it was just to see if I could make a quick fix. In any event, I suspect it is a limitation on gcc 2.95, as it doesn't even hesistate during compiling on gcc 4.3.2 under OpenSuSE 11. Raymond |