V8で本当に小さな例をコンパイルするのに苦労しています..
cpp プログラムは次のとおりです。
#include "v8.h"
int main()
{
v8::HandleScope handle_scope;
return 0;
}
コンパイル行: 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 テスト -lpthread
私が得ているエラー:
/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
ベース、スナップショット、およびスナップショットなしのライブラリ ファイルの違いは何ですか? それぞれとリンクしようとしましたが、どれも機能しません:/