word2vec_win32: build google word2vec with VS2013
You'd better build word2vec under Linux, if possible.
- download the source
- build word2vec_win32.sln with VS2013
- done
- clone all the codes from https://code.google.com/p/word2vec/
- create VS2013 solution and projects based on the makefile
- make some chage so VS2013 will build the exes:
-
add this definination to all c files
#define _CRT_SECURE_NO_WARNINGS
-
change some "const" to "#define", Ex.
#define MAX_STRING 100
-
use _aligned_malloc to replace posix_memalign
#define posix_memalign(p, a, s) (((*(p)) = _aligned_malloc((s), (a))), *(p) ?0 :errno)
-
add https://www.sourceware.org/pthreads-win32/ to project word2vec, and adjust inlude/lib path
-
that's it.