Comment #5 on issue 1596 by [email protected]: Unresolved externals linking v8preparser.lib on Windows 7
http://code.google.com/p/v8/issues/detail?id=1596

Here's a rather bizarre workaround pointed out to me by Josh Bodily. Building using these command (somehow) works:

c:\d\v8>"c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /x86 /Release
c:\d\v8>scons arch=ia32 env="PATH:%PATH%,INCLUDE:%INCLUDE%,LIB:%LIB%" \
  library=static mode=release msvcrt=shared -j4
          ^^^^^^

c:\d\v8>scons arch=ia32 env="PATH:%PATH%,INCLUDE:%INCLUDE%,LIB:%LIB%" \
  library=shared mode=release msvcrt=shared -j4
          ^^^^^^

c:\d\v8>scons arch=ia32 env="PATH:%PATH%,INCLUDE:%INCLUDE%,LIB:%LIB%" \
  library=shared mode=release msvcrt=shared -j4
          ^^^^^^

In other words, build once with `library=static`, then twice more with `library=shared`. The same unresolved symbol errors are emitted after the first attempt to build with `library=shared`, and I get a weird 'pseudo-error' in the final build that, it seems, can be safely ignored[?] (I haven't had a lot of time to verify this, and I'm unable to run the included test suite. But I did manage to build/run the hello_world example this way.)

[Note: I've shown the commands for a 32-bit build above, but the same workaround can be used with 64-bit builds as well.]




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

Reply via email to