You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I executed cmake && make and got some *.a files, and copied these files to /usr/local/v8/lib.
I use the *.a file to build a executable file. g++ main.cpp -I/usr/local/v8/include -L/usr/local/v8/lib -lv8_base_without_compiler -lv8_compiler -lv8_snapshot -lv8_inspector -lv8_libplatform
got so much error message.
......
/usr/bin/ld: /usr/local/v8/lib/libv8_libplatform.a(trace-object.cc.o): in function v8::platform::tracing::TraceObject::Initialize(char, unsigned char const*, char const*, char const*, unsigned long, unsigned long, int, char const**, unsigned char const*, unsigned long const*, std::unique_ptr<v8::ConvertableToTraceFormat, std::default_delete<v8::ConvertableToTraceFormat> >*, unsigned int, long, long)': trace-object.cc:(.text+0x73): undefined reference to v8::base::OS::GetCurrentProcessId()'
/usr/bin/ld: trace-object.cc:(.text+0x83): undefined reference to `v8::base::OS::GetCurrentThreadId()'
The text was updated successfully, but these errors were encountered:
I resolved it with -lv8_base_without_compiler -lv8_compiler -lv8_snapshot -lv8_inspector -lv8_libplatform -lv8_libbase -lv8_base_without_compiler -lpthread .
and I combined them to monolith with command ar x *.a && ar crs libv8.a *.o. it works.
Thank you.
I executed
cmake && make
and got some *.a files, and copied these files to /usr/local/v8/lib.I use the *.a file to build a executable file.
g++ main.cpp -I/usr/local/v8/include -L/usr/local/v8/lib -lv8_base_without_compiler -lv8_compiler -lv8_snapshot -lv8_inspector -lv8_libplatform
got so much error message.
......
/usr/bin/ld: /usr/local/v8/lib/libv8_libplatform.a(trace-object.cc.o): in function
v8::platform::tracing::TraceObject::Initialize(char, unsigned char const*, char const*, char const*, unsigned long, unsigned long, int, char const**, unsigned char const*, unsigned long const*, std::unique_ptr<v8::ConvertableToTraceFormat, std::default_delete<v8::ConvertableToTraceFormat> >*, unsigned int, long, long)': trace-object.cc:(.text+0x73): undefined reference to
v8::base::OS::GetCurrentProcessId()'/usr/bin/ld: trace-object.cc:(.text+0x83): undefined reference to `v8::base::OS::GetCurrentThreadId()'
The text was updated successfully, but these errors were encountered: