You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to v8-u...@googlegroups.com
I am trying to use V8 directly in my c++ app, but i have no idea what libs to link to. I have tried many different configurations and get all sorts of different unresolved external errors, far to many to post here. So what is the right incantation for linking? Any advice?
thanks
Louis Santillan
unread,
May 12, 2015, 8:15:10 PM5/12/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to v8-u...@googlegroups.com
The short answer follows:
# assuming linux vs. windows/osx/etc.
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git export PATH=$PWD/depot_tools:$PATH
fetch v8
# assuming gcc instead of clang
# assuming x64/amd64/x86_64 vs i386/i686/ia32
# assuming no i18n
cd v8
make GYPFLAGS="-Dclang=0" x64.release i18nsupport=off
cd ../
g++ -I v8/ mycode.cpp -o mycode -Wl,--start-group
v8/out/x64.release/obj.target/{tools/gyp/libv8_{base,libbase,snapshot,libplatform}}.a
-Wl,--end-group -lrt -pthread
./mycode