On Thu, Aug 21, 2014 at 5:52 AM, Louis Santillan <[email protected]> wrote:

> Thanks Jakob.  That answers my question on how to link it.  The
> following line works the way I intend it to.
> g++ -Iinclude myshell.cpp -o myshell -Wl,--start-group
> out/ia32.release/obj.target/tools/gyp/libv8_{base,libbase,snapshot}.a
> -Wl,--end-group -lrt -lpthread
>

The {start,end}-group options are not necessary if you don't use with i18n.
Note that the order of the libraries *is* important, though, at least for
static linking: The linker only "looks to the right" when resolving
references.


> I'm guessing the reason for --start-group/--end-group is because of
> circular references in the libs.  Is that right?
>

Yes, but only for the ICU libs for i18n, that's the reason why you don't
need it for your example.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to