Re: [v8-users] Run v8 hello_world demo error

2013-10-27 Thread Jochen Eisinger
You shouldn't link against the obj.host libraries. Also, if you link against the .a files, you need to link first against v8 and then against icu. best -jochen On Sun, Oct 27, 2013 at 2:39 AM, t...@ainfach.de t...@ainfach.de wrote: i have the same issue, i tryed to link against everything:

Re: [v8-users] Run v8 hello_world demo error

2013-10-27 Thread t...@ainfach.de
thanks a lot, this seems to work without any flags; cmake_minimum_required (VERSION 2.6) project (hello) add_executable (hello main.cpp) include_directories (/home/dev/proj/cpp/v8/include/ /usr/local/include) TARGET_LINK_LIBRARIES( hello

Re: [v8-users] Run v8 hello_world demo error

2013-10-27 Thread joko suwito
Thank you at your information. Pada 27 Okt 2013 19:17, t...@ainfach.de t...@ainfach.de menulis: thanks a lot, this seems to work without any flags; cmake_minimum_required (VERSION 2.6) project (hello) add_executable (hello main.cpp) include_directories (/home/dev/proj/cpp/v8/include/

[v8-users] embed object

2013-10-27 Thread t...@ainfach.de
Hello, i try to embed a simple object (request, with the method getUrl()) in v8. i can embed normal functions like this: global-Set(String::New(log), FunctionTemplate::New(LogCallback)); if i try to embed a instance of an Object, i get a Segfault: global-Set(String::New(logObj),

[v8-users] Simple Object

2013-10-27 Thread t...@ainfach.de
i tryed to read some tests to embed a simple object instance in v8. can somebody explain me why the log and logObj functions aren't defined in this example? int main(int argc, char* argv[]) { // Get the default Isolate created at startup. Isolate* isolate = Isolate::GetCurrent();