On Oct 9, 10:06 am, alemao <[EMAIL PROTECTED]> wrote:
>
>  what I wanna know is how to compile the example in another folder?!

The simplest approach that should work on all Unix-type systems is to
install V8's include/ directory as /usr/include/v8 (then use -D/usr/
include/v8 in your Makefile), and install libv8.a and libv8.so in /usr/
lib.  Then your make should do the right thing automatically.  The
same applies if you use /usr/local/include/v8 and /usr/local/lib,
which is tidier as it separates works in progress like V8 from your
standard system resources, always a good idea.

On some systems you'll need to run ldconfig or similar to tell the
system link loader about the new .so too, if you're not linking
statically to V8.

The other approach is to specify the full path to the build
directory's libv8.so in your g+ link line, but that's a dreadful hack,
and quick test programs linked that way should never be deployed.

Morgaine.
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to