OK, I am really lost.

1. No matter which options I pass to scons to build V8 I get a v8.lib of
70.9MB.
2. If I try to build a DLL I get a v8.dll of 1.3MB which gives corruption
errors when I try to link with it.
3. When I use MS Visual C++ 2008 to build the Hello World program and link
with v8.lib I get these link errors:


1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__acc...@12

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__lis...@8

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__s...@16

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__gethostbyn...@4

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__gethostbya...@12

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__closesoc...@4

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__wsasetlaster...@4

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__getservbyn...@8

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__timegett...@0

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__soc...@12

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__b...@12

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__r...@16

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__getservbyp...@8

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__setsock...@20

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__shutd...@8

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__nt...@4

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__ht...@4

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__wsagetlaster...@0

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__ht...@4

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__inet_a...@4

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__nt...@4

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__wsastar...@8

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__inet_n...@4

1>v8.lib(platform-win32.obj) : error LNK2001: unresolved external symbol
__imp__conn...@12

1>v8.lib(conversions.obj) : error LNK2001: unresolved external symbol __HUGE

These look like some sort of standard library is missing.

Any ideas?  Getting a bit desperate here!

On Wed, Apr 22, 2009 at 7:16 AM, Alex Iskander <[email protected]> wrote:

> Does it compile with the debug library? Because the errors you are showing
> look to me more like compile-time errors than link-time errors, meaning
> they'd occur whether or not you used release.
> How are you compiling the hello world program (does scons handle this)?
> (I've never used it; instead, I just jumped right in.)
>
> Alex
>
>  On Apr 21, 2009, at 4:10 PM, Qu0ll wrote:
>
>  On Wed, Apr 22, 2009 at 7:04 AM, Alex Iskander <[email protected]>wrote:
>
>> You use: scons mode=release
>>
>> Alex
>>
>>  On Apr 21, 2009, at 4:00 PM, Qu0ll wrote:
>>
>>  On Wed, Apr 22, 2009 at 6:30 AM, Stephan Beal <[email protected]>wrote:
>>
>>>
>>> On Tue, Apr 21, 2009 at 7:28 PM, Qu0ll <[email protected]> wrote:
>>> > I have just built V8 on a Windows Vista machine and I am stunned to
>>> > find that the resulting v8.lib is 70MB!  How can that be when the
>>> > entire Chrome download is only a few MB?  Has something gone
>>> > catastropically wrong in my build?
>>>
>>> You built it in debugging mode (it's about 47MB for a static debug lib
>>> on linux x86/32, 18MB for a DLL, or under 4MB in release mode). Build
>>> it in release mode and it'll be a lot smaller (but you also won't get
>>> the pretty stack dumps when something goes horribly wrong).
>>>
>> OK, how do I build in release mode?  I tried scons release=1 but that
>> didn't make any difference.
>>
>> And why is the DLL so much smaller than the static lib?
>>
>> Thanks,
>>
>> -Qu0ll
>>
>> OK thanks.
>
> However, when I try to run the Hello World example I get the following
> errors on Windows:
>
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::HandleScope::HandleScope()'
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::Context::New(v8::ExtensionConfiguration*,
> v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)'
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::String::New(char const*, int)'
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::Script::Compile(v8::Handle<v8::String>, v8::ScriptOrigin*,
> v8::ScriptData*)'
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::Script::Run()'
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::String::AsciiValue::AsciiValue(v8::Handle<v8::Value>)'
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::String::AsciiValue::~AsciiValue()'
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::HandleScope::~HandleScope()'
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::String::AsciiValue::~AsciiValue()'
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::HandleScope::~HandleScope()'
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::Context::Exit()'
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::Context::Enter()'
>
> D:/SVN/V8/trunk/include/v8.h:2432: undefined reference to
> `v8::V8::DisposeGlobal(void**)'
>
>
> Do I need another library or some other configuration setting?
>
>
>
>
>   Alex Iskander, TPSi
>
>
>
>
>
> >
>

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

Reply via email to