If they are link errors (the "undefined" is throwing me off since I haven't worked with Windows in a couple of weeks) then something is, indeed, wrong.
The first possibility is that you are not linking with the library. It's happened all too often to me that my library search paths are wrong. More likely, given the gigantic size of your v8.lib file, something is seriously wrong (if you've compiled both debug and release, there should be v8_g.lib for debug and v8.lib for release). There is a chance that the revision you got from SVN was bad (this is probably unlikely, as it usually seems pretty stable). You can try pulling a new revision, or going back and using a significantly older revision. Is there any more detail you can give about what's going on? Alex On Apr 21, 2009, at 4:20 PM, Qu0ll wrote: > On Wed, Apr 22, 2009 at 7:10 AM, Qu0ll <[email protected]> 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? > > > > I am clearly doing something fundamentally wrong here. Firstly, > using scons mode=release does not reduce the size of the library, > it's still 70.9MB. And then I get the link errors above. Anyone > know what's going on? > > > Alex Iskander, TPSi --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
