Search code examples
buildvisual-studio-2012linkerv8

google V8 build error LNK1104: cannot open file 'ws2_32.lib'


I'm trying to build google's V8 JavaScript Engine with MS Visual Studio 2012 on a 64bit system, but it always outputs the error

 LINK : fatal error LNK1104: cannot open file 'ws2_32.lib'

I have done everything according to https://code.google.com/p/v8/wiki/BuildingWithGYP. I have used the python way instead of cygwin to generate the project files.

How do i set up my linker that it finds the ws2_32.lib?

//EDIT For some reason GYP made project files for vs2010 and not vs2012 so I had to update them. Now it works. (weird, I tried this before and it didn't work)


Solution

  • GYP created VS2010 project files so I had to update them to VS2012.