This project has moved. For the latest updates, please go here.

veracrypt compile errors in window7 visual studio 2010

Topics: Technical Issues
Sep 19, 2016 at 1:27 PM
I tried to compile veracrypt in windows 7 with visual studio 2010

The "Boot"and "Crypto" projects were built completely.

But, in "Driver" project, i met following error messages...

What's wrong with my task??

plz, help me!!

------ Build started: Project: Boot, Configuration: Release Loader Win32 ------
------ Build started: Project: Driver, Configuration: Debug Win32 ------
------ Building veracrypt.sys: Debug x86 ------
path contains nonexistant c:\program files (x86)\microsoft visual studio 10.0\common7\tools\bin, removing
BUILD: Compile and Link for x86

BUILD: Loading c:\winddk\7600.16385.1\build.dat...

BUILD: Computing Include file dependencies:

BUILD: Start time: Mon Sep 19 22:10:01 2016
BUILD: Examining c:\veracrypt-4b6a4bc6e795f4c9c649e4453307c16ceca35e2d\src\driver directory for files to compile.
BUILD: Saving c:\winddk\7600.16385.1\build.dat...

BUILD: Compiling and Linking c:\veracrypt-4b6a4bc6e795f4c9c649e4453307c16ceca35e2d\src\driver directory

1>errors in directory c:\veracrypt-4b6a4bc6e795f4c9c649e4453307c16ceca35e2d\src\driver
1>c:\veracrypt-4b6a4bc6e795f4c9c649e4453307c16ceca35e2d\src\driver\crypto.lib(sha2.obj) : error LNK2019: unresolved external symbol __chkstk referenced in function __sha512_compile@4 1>c:\veracrypt-4b6a4bc6e795f4c9c649e4453307c16ceca35e2d\src\driver\obj_driver_debug\i386\veracrypt.sys : error LNK1120: 1 unresolved externals
BUILD: Finish time: Mon Sep 19 22:10:04 2016
  0 files compiled - 1 Warning - 2 Errors

------ Building veracrypt.sys: Debug x64 ------
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "echo ------ Building veracrypt.sys: Debug x86 ------
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: cmd.exe /c BuildDriver.cmd -build -debug -x86 "C:\veracrypt-4b6a4bc6e795f4c9c649e4453307c16ceca35e2d\src\Common" "C:\veracrypt-4b6a4bc6e795f4c9c649e4453307c16ceca35e2d\src\Crypto" "C:\veracrypt-4b6a4bc6e795f4c9c649e4453307c16ceca35e2d\src\Driver\"
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: if errorlevel 1 exit %errorlevel%
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: echo.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: echo ------ Building veracrypt.sys: Debug x64 ------
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: BuildDriver.cmd -build -debug -x64 "C:\veracrypt-4b6a4bc6e795f4c9c649e4453307c16ceca35e2d\src\Common" "C:\veracrypt-4b6a4bc6e795f4c9c649e4453307c16ceca35e2d\src\Crypto" "C:\veracrypt-4b6a4bc6e795f4c9c649e4453307c16ceca35e2d\src\Driver\"" exited with code -1.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Sep 19, 2016 at 3:44 PM

Please perform a search on the site before posting to check that it was not answered before.
For your issue, this has been already answered here:
Sep 20, 2016 at 7:05 AM
It is solved.

Thanks for your help!