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? --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
