Hansy
unread,Jan 21, 2009, 2:06:48 PM1/21/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wxJavaScript
Hi,
I got the following errors when I built the wxjs on Ubuntu 8.04:
==== Building wxjs ====
main.cpp
In file included from ../common/main.h:39,
from ../stdwx.h:15,
from main.cpp:25:
../common/wxjsobj.h: In member function ‘bool
wxjs::JavaScriptObject::SetProperty(JSContext*, const std::string&,
const T&)’:
../common/wxjsobj.h:148: error: ‘JavaScriptType’ was not declared in
this scope
../common/wxjsobj.h:148: error: expected primary-expression before ‘>’
token
../common/wxjsobj.h: In member function ‘bool
wxjs::JavaScriptObject::SetElement(JSContext*, int, const T&)’:
../common/wxjsobj.h:239: error: ‘JavaScriptType’ was not declared in
this scope
../common/wxjsobj.h:239: error: expected primary-expression before ‘>’
token
In file included from ../common/main.h:47,
from ../stdwx.h:15,
from main.cpp:25:
../common/ctype.h: At global scope:
../common/ctype.h:140: error: too few template-parameter-lists
../common/ctype.h:156: error: too few template-parameter-lists
../common/ctype.h:175: error: too few template-parameter-lists
../common/ctype.h:194: error: too few template-parameter-lists
../common/ctype.h:213: error: too few template-parameter-lists
../common/ctype.h:229: error: too few template-parameter-lists
../common/ctype.h:305: error: too few template-parameter-lists
../common/ctype.h:321: error: too few template-parameter-lists
../common/ctype.h:337: error: too few template-parameter-lists
In file included from ../common/main.h:50,
from ../stdwx.h:15,
from main.cpp:25:
../common/native.h: In static member function ‘static JSBool
wxjs::NativeJavaScriptObject<T_Port, T_Priv, ctor,
T_Enum>::MethodCallback(JSContext*, JSObject*, uintN, jsval*,
jsval*)’:
../common/native.h:520: error: expected `;' before ‘callback’
../common/native.h:527: error: ‘callback’ was not declared in this
scope
../common/native.h: In static member function ‘static JSBool
wxjs::NativeJavaScriptObject<T_Port, T_Priv, ctor,
T_Enum>::ClassMethodCallback(JSContext*, JSObject*, uintN, jsval*,
jsval*)’:
../common/native.h:553: error: expected `;' before ‘callback’
../common/native.h:558: error: ‘callback’ was not declared in this
scope
../common/native.h: In static member function ‘static void
wxjs::NativeJavaScriptObject<T_Port, T_Priv, ctor,
T_Enum>::AddClassMethod(JSContext*, const char*, jsval (T_Port::*)
(JSContext*, wxjs::JavaScriptArgs&), uintN)’:
../common/native.h:589: error: declaration of ‘JSObject* ctor’
../common/native.h:86: error: shadows template parm ‘int ctor’
In file included from ../engine/engine.h:33,
from main.cpp:38:
../engine/script.h: At global scope:
../engine/script.h:71: error: extra qualification
‘wxjs::ScriptSource::’ on member ‘GetSource’
make[1]: *** [obj/Debug/main.o] Error 1
make: *** [wxjs] Error 2
Can anyone help me? Thanks!