Skip to content

Commit a035478

Browse files
author
Stepan Baranov
committed
set VS160COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\
to allow compile OCTLib x64-bit library with Microsoft Visual Studio 2019 Enterprise edition
1 parent d2a704d commit a035478

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

OCTLib/code/make64.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
set MYPROG=OCTLib_64
55
set EXCLUDE.1=lin_regr
66
set EXCLUDE.2=peak_width
7+
set VS160COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\
78

8-
@call "%VS90COMNTOOLS%\..\..\VC\vcvarsall.bat" amd64
9+
@call "%VS160COMNTOOLS%\..\..\VC\Auxiliary\Build\vcvarsall.bat" amd64
910

1011
echo.
1112

1213
@ for %%A in (*.cpp) do cl /O2 /favor:INTEL64 /EHsc /GL /GS- /fp:fast /Fo"../bin/" /I"../include/" /D "WIN64" /D "NDEBUG" /c /W4 /nologo /MT /openmp %%A
1314
@ for /f "usebackq delims==. tokens=1-3" %%i in (`set EXCLUDE`) do del "../bin/%%k.obj"
1415
rc /i "../include/" /d "NDEBUG" /d "WIN64" /l 0x409 /fo"../bin/%MYPROG%.res" OCTLib.rc
1516
link /DLL /NOASSEMBLY /LIBPATH:../lib libfftw3-3-x64.lib /OPT:REF /MACHINE:X64 /NOLOGO /LTCG /OUT:../bin/%MYPROG%.dll ../bin/*.obj ../bin/%MYPROG%.res
16-
mt -nologo -manifest "../bin/%MYPROG%.dll.manifest" -outputresource:"../bin/%MYPROG%.dll";2
17-
del "../bin/*.obj" "../bin/%MYPROG%.exp" "../bin/%MYPROG%.res" "../bin/%MYPROG%.dll.manifest"
17+
del "../bin/*.obj" "../bin/%MYPROG%.exp" "../bin/%MYPROG%.res"
1818

1919
echo %MYPROG% is compiled

0 commit comments

Comments
 (0)