Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Failed to launch hello_world.cc
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
劉君羿  
View profile  
 More options Oct 2 2012, 9:49 am
From: 劉君羿 <trantor....@gmail.com>
Date: Tue, 2 Oct 2012 06:49:49 -0700 (PDT)
Local: Tues, Oct 2 2012 9:49 am
Subject: Failed to launch hello_world.cc

I am using ubuntu 10.04 on x86_64 machine.
I built v8 with *"make native"*,
and copied and pasted the *hello_world.cc<https://developers.google.com/v8/get_started>
 *to the root directory of v8.
I typed *"g++ -Iinclude hello_world.cc hello_world"*, and it gave me the
following error:
*
*
/tmp/ccjmXg7T.o: In function `main':
hw.cc:(.text+0x26): undefined reference to `v8::HandleScope::HandleScope()'
hw.cc:(.text+0x53): undefined reference to
`v8::Context::New(v8::ExtensionConfiguration*,
v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)'
hw.cc:(.text+0x79): undefined reference to `v8::String::New(char const*,
int)'
hw.cc:(.text+0xb4): undefined reference to
`v8::Script::Compile(v8::Handle<v8::String>, v8::ScriptOrigin*,
v8::ScriptData*, v8::Handle<v8::String>)'
hw.cc:(.text+0xda): undefined reference to `v8::Script::Run()'
hw.cc:(.text+0x114): undefined reference to
`v8::String::AsciiValue::AsciiValue(v8::Handle<v8::Value>)'
hw.cc:(.text+0x13f): undefined reference to
`v8::String::AsciiValue::~AsciiValue()'
hw.cc:(.text+0x155): undefined reference to
`v8::String::AsciiValue::~AsciiValue()'
hw.cc:(.text+0x193): undefined reference to
`v8::HandleScope::~HandleScope()'
hw.cc:(.text+0x1b5): undefined reference to
`v8::HandleScope::~HandleScope()'
/tmp/ccjmXg7T.o: In function
`v8::Context::Scope::Scope(v8::Handle<v8::Context>)':
hw.cc:(.text._ZN2v87Context5ScopeC1ENS_6HandleIS0_EE[v8::Context::Scope::Sc ope(v8::Handle<v8::Context>)]+0x2b):
undefined reference to `v8::Context::Enter()'
/tmp/ccjmXg7T.o: In function `v8::Context::Scope::~Scope()':
hw.cc:(.text._ZN2v87Context5ScopeD1Ev[v8::Context::Scope::~Scope()]+0x1c):
undefined reference to `v8::Context::Exit()'
/tmp/ccjmXg7T.o: In function `v8::Persistent<v8::Context>::Dispose()':
hw.cc:(.text._ZN2v810PersistentINS_7ContextEE7DisposeEv[v8::Persistent<v8:: Context>::Dispose()]+0x2c):
undefined reference to `v8::V8::DisposeGlobal(v8::internal::Object**)'
collect2: ld returned 1 exit status


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jakob Kummerow  
View profile  
 More options Oct 2 2012, 10:19 am
From: Jakob Kummerow <jkumme...@chromium.org>
Date: Tue, 2 Oct 2012 16:19:12 +0200
Local: Tues, Oct 2 2012 10:19 am
Subject: Re: [v8-users] Failed to launch hello_world.cc

Please follow the provided instructions:

Compile hello_world.cpp, linking to the static libraries created in the

> build process. For example, on 64bit Linux using the GNU compiler:
> g++ -Iinclude hello_world.cc -o hello_world
> out/x64.release/obj.target/tools/gyp/libv8_{base,snapshot}.a -lpthread

Simply omitting the reference to the libraries is not going to work. Since
you built with "make native", you'll have to adapt the path to
"out/native/...".


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
劉君羿  
View profile  
 More options Oct 3 2012, 2:47 am
From: 劉君羿 <trantor....@gmail.com>
Date: Wed, 3 Oct 2012 14:47:27 +0800
Local: Wed, Oct 3 2012 2:47 am
Subject: Re: [v8-users] Failed to launch hello_world.cc

It works!! Thank you.

2012/10/2 Jakob Kummerow <jkumme...@chromium.org>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »