I do the following:
git clone --depth 1 git://github.com/v8/v8.git deps/v8
make builddeps
make ia32.release -j8 i18nsupport=off
g++ -O3 -m32 -L./deps/v8/out/ia32.release/obj.target/tools/gyp
-L./deps/v8/out/ia32.release -L./deps/v8 \
-lpthread -ldl -lv8_libbase -lv8_base -lv8_snapshot -lv8_libplatform \
myshell.cpp -o myshell

and the relevant output is:
myshell.cpp: In function `ReadFile(char const*)':
myshell.cpp:(.text+0xcb): undefined reference to
`v8::String::NewFromUtf8(v8::Isolate*, char const*,
v8::String::NewStringType, int)'
myshell.cpp: In function `main':
myshell.cpp:(.text.startup+0x55): undefined reference to
`v8::V8::InitializeICU(char const*)'
myshell.cpp:(.text.startup+0x61): undefined reference to
`v8::platform::CreateDefaultPlatform(int)'
myshell.cpp:(.text.startup+0x6c): undefined reference to
`v8::V8::InitializePlatform(v8::Platform*)'
myshell.cpp:(.text.startup+0x80): undefined reference to
`v8::V8::SetFlagsFromCommandLine(int*, char**, bool)'
myshell.cpp:(.text.startup+0x85): undefined reference to
`v8::Isolate::New()'
myshell.cpp:(.text.startup+0x99): undefined reference to
`v8::HandleScope::HandleScope(v8::Isolate*)'
myshell.cpp:(.text.startup+0xae): undefined reference to
`v8::ObjectTemplate::New(v8::Isolate*)'
myshell.cpp:(.text.startup+0xf6): undefined reference to
`v8::String::NewFromUtf8(v8::Isolate*, char const*,
v8::String::NewStringType, int)'
...

Is there something I'm doing obviously wrong?  This is an Ubuntu 14.04 VPS.

On Tue, Aug 19, 2014 at 12:06 PM, Louis Santillan <[email protected]> wrote:
> Then I must be doing something wrong. I keep getting missing symbols (stuff
> in v8::) when linking and I've seen references to gyp building thin
> libraries for v8.
>
> -L
>
>
> On Tuesday, August 19, 2014, Jakob Kummerow <[email protected]> wrote:
>>
>> I don't understand the question. The static build is the default. Nothing
>> has changed in years.
>>
>>
>> On Tue, Aug 19, 2014 at 8:39 PM, Louis Santillan <[email protected]>
>> wrote:
>>>
>>> Is this not possible then?
>>>
>>> On Fri, Aug 15, 2014 at 7:21 AM, Louis Santillan <[email protected]>
>>> wrote:
>>> > How do you compile/link v8 as a static library these days?
>>>
>>> --
>>> --
>>> 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.
>>
>>
>> --
>> --
>> 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.

-- 
-- 
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