From cfa2c387815ab9c467dd7894c9e5aac94f428a48 Mon Sep 17 00:00:00 2001 From: b99902019 Date: Mon, 2 Dec 2013 12:32:14 +0800 Subject: [PATCH] Modify README so that user can build 64 bit windows binary Fix a bug in Makefile.win: __WIN32__ should be _WIN32 --- Makefile.win | 2 +- README | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.win b/Makefile.win index 84aa489..9f44d72 100644 --- a/Makefile.win +++ b/Makefile.win @@ -5,7 +5,7 @@ ########################################## CXX = cl.exe -CFLAGS = -nologo -O2 -EHsc -I. -D __WIN32__ -D _CRT_SECURE_NO_DEPRECATE +CFLAGS = /nologo /O2 /EHsc /I. /D _WIN32 /D _CRT_SECURE_NO_DEPRECATE TARGET = windows all: $(TARGET)\train.exe $(TARGET)\predict.exe diff --git a/README b/README index 3a659e0..3e8506a 100644 --- a/README +++ b/README @@ -504,6 +504,9 @@ VC++ or where it is installed. nmake -f Makefile.win clean all +2. (Optional) To build 64-bit windows binaries, you must + (1) Setup vcvars64.bat instead of vcvars32.bat + (2) Change CFLAGS in Makefile.win: /D _WIN32 to /D _WIN64 MATLAB/OCTAVE Interface ======================= -- 2.40.0