I'm strugling to compile a really small example with V8..
cpp program is this:
#include "v8.h"
int main()
{
v8::HandleScope handle_scope;
return 0;
}
Compile line: g++ -I/home/lterje/git/tengine/Externals/v8/include /home/lterje/git/tengine/Externals/v8/out/ia32.release/obj.target/tools/gyp/libv8_snapshot.a test.cpp -o test -lpthread
Error I'm getting:
/tmp/ccHYtJuE.o: In function `main':
test.cpp:(.text+0x11): undefined reference to `v8::HandleScope::HandleScope()'
test.cpp:(.text+0x22): undefined reference to `v8::HandleScope::~HandleScope()'
collect2: error: ld returned 1 exit status
What exactly is the difference between the base, snapshot and no snapshot library files? I've tried linking with each of them, but none of them works :/
.afiles need to go after your source files on the command line.