const...@gmail.com
unread,Apr 10, 2009, 11:05:29 PM4/10/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 am trying to build wxjs on Fedora and get this error:
[root@cflinux ~/Downloads/wxjs/src/wxjs]# make
module.cpp
g++ -MMD -D "JS_THREADSAFE" -D "XP_UNIX" -D "GTK_NO_CHECK_CASTS" -D
"NO_GCC_PRAGMA" -D "DEBUG" -I ".." -I "../js" -I "../nspr/include" -I
"/home/cf/Downloads/poco-1.3.3p1-all/Foundation/include" -I "/home/cf/
Downloads/poco-1.3.3p1-all/Util/include" -g -Wall -o "obj/Debug/
module.o" -c "../engine/module.cpp"
Linking wxjs
g++ -o ../../bin/Debug/wxJS obj/Debug/main.o obj/Debug/wxjsobj.o obj/
Debug/engine.o obj/Debug/module.o obj/Debug/script.o obj/Debug/
buffer.o -L../../bin/Debug -L../../lib -L"/home/cf/Downloads/
poco-1.3.3p1-all/lib" -lnspr -ljs -lPocoFoundationd -lPocoUtild
obj/Debug/module.o: In function
`wxjs::NativeJavaScriptObject<wxjs::Module, wxjs::PrivateModule, 1,
wxjs::DefaultEnumerator<wxjs::Module, wxjs::PrivateModule> >::AddMethod
(JSContext*, char const*, long (wxjs::Module::*)(JSContext*,
wxjs::PrivateModule*, wxjs::JavaScriptArgs&), unsigned int)':
/home/cf/Downloads/wxjs/src/wxjs/../common/native.h:576: undefined
reference to `wxjs::NativeJavaScriptObject<wxjs::Module,
wxjs::PrivateModule, 1, wxjs::DefaultEnumerator<wxjs::Module,
wxjs::PrivateModule> >::m_objectMethods'
/home/cf/Downloads/wxjs/src/wxjs/../common/native.h:577: undefined
reference to `wxjs::NativeJavaScriptObject<wxjs::Module,
wxjs::PrivateModule, 1, wxjs::DefaultEnumerator<wxjs::Module,
wxjs::PrivateModule> >::m_objectMethods'
If I just run the preprocessor, I clearly see the declaration of
Method class static
variables like this:
template<> JSObject *Module::TOBJECT::m_classProto = __null;
template<> const char* Module::TOBJECT::m_jsClassName = "Module";
template<> std::vector<Module::TOBJECT::MethodPtr>
Module::TOBJECT::m_objectMethods; template<>
std::vector<Module::TOBJECT::
ClassMethodPtr> Module::TOBJECT::m_classMethods;
So, it looks like the necessary declaration is in module.o but linked
cannot find it.
Why?
Has anyone compiled wxjs on Fedora?
Should I upgrade compiler?
Thanks