Status: New
Owner: ----

New issue 923 by jussi.kalliokoski: Embedding causes errors
http://code.google.com/p/v8/issues/detail?id=923

Hello, I actually have no idea where to put this, since there's no question forum. Anyway:

I've installed libv8, libv8-dbg and libv8-dev on my Ubuntu 10.10, when I try to write an application using the V8 shared library (I'm making a shared library as well, so I can't link the .a file), I get such errors on G++:


$ g++ hw.cpp -o hw.so
/tmp/cc1nR0qB.o: In function `main':
hw.cpp:(.text+0x45): undefined reference to `v8::Context::New(v8::ExtensionConfiguration*, v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)'
hw.cpp:(.text+0x53): undefined reference to `v8::HandleScope::HandleScope()'
hw.cpp:(.text+0x63): undefined reference to `v8::HandleScope::~HandleScope()'
collect2: ld returned 1 exit status

Where the source code for hw.cpp is just testing:

#include <v8.h>

using namespace v8;

int main(int argc, char* argv[])
{
        Persistent<Context> context = Context::New();
        HandleScope handle_scope;
        return 0;
}


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to