Looks like you've forgotten to link in libv8_base.a.

On Mon, May 20, 2013 at 7:49 AM, Crossle Song <[email protected]> wrote:

>
> $ gcc -Iinclude hello_world.cpp -o hello_world
>> out/x64.release/obj.target/tools/gyp/libv8_snapshot.a -lpthread
>> /tmp/ccmNdbH0.o: In function `main':
>> hello_world.cpp:(.text+0x1a): undefined reference to
>> `v8::Isolate::GetCurrent()'
>> hello_world.cpp:(.text+0x31): undefined reference to
>> `v8::HandleScope::HandleScope(v8::Isolate*)'
>> hello_world.cpp:(.text+0x56): undefined reference to
>> `v8::Context::New(v8::ExtensionConfiguration*,
>> v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)'
>> hello_world.cpp:(.text+0x8d): undefined reference to
>> `v8::Context::Enter()'
>> hello_world.cpp:(.text+0x9c): undefined reference to
>> `v8::String::New(char const*, int)'
>> hello_world.cpp:(.text+0xd9): undefined reference to
>> `v8::Script::Compile(v8::Handle<v8::String>, v8::ScriptOrigin*,
>> v8::ScriptData*, v8::Handle<v8::String>)'
>> hello_world.cpp:(.text+0xfd): undefined reference to `v8::Script::Run()'
>> hello_world.cpp:(.text+0x15a): undefined reference to
>> `v8::V8::DisposeGlobal(v8::internal::Isolate*, v8::internal::Object**)'
>> hello_world.cpp:(.text+0x170): undefined reference to
>> `v8::String::AsciiValue::AsciiValue(v8::Handle<v8::Value>)'
>> hello_world.cpp:(.text+0x195): undefined reference to
>> `v8::String::AsciiValue::~AsciiValue()'
>> hello_world.cpp:(.text+0x1af): undefined reference to
>> `v8::Context::Exit()'
>> hello_world.cpp:(.text+0x1bb): undefined reference to
>> `v8::HandleScope::~HandleScope()'
>> hello_world.cpp:(.text+0x1d8): undefined reference to
>> `v8::String::AsciiValue::~AsciiValue()'
>> hello_world.cpp:(.text+0x1f7): undefined reference to
>> `v8::Context::Exit()'
>> hello_world.cpp:(.text+0x208): undefined reference to
>> `v8::HandleScope::~HandleScope()'
>> /tmp/ccmNdbH0.o:(.eh_frame+0x4b): undefined reference to
>> `__gxx_personality_v0'
>> collect2: error: ld returned 1 exit status
>>
>>
>>  --
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to