sandboxie / sandboxie

The Sandboxie application
GNU General Public License v3.0
3.57k stars 704 forks source link

LNK2001 _wcsncmp #10

Open Tigzy opened 4 years ago

Tigzy commented 4 years ago

Hello, I'm trying to compile the solution, but at least 3 projects have linker errors. SboxDll throws linker error on _wcsncmp, _wcslen and many other symbols.

I found it was linking against /NODEFAULTLIB, but changing that didn't even help. How did you guys manage to compile the project when the linked libraries don't contain all required symbols ?

Thanks,

Tigzy commented 4 years ago

Ok it seems like WDKPATH environment variable is not resolving properly on my machine, for some reason.. (missing the C: before the path). When I defined another env var it works. Anyone else having the same issue ?

Tigzy commented 4 years ago

The problem is in Sandbox32.props (and 64):

<PropertyGroup Label="UserMacros">
    <WDKPATH>\WinDDK\7600.16385.1</WDKPATH>
  </PropertyGroup>

Needs to be updated manually to work.

Tigzy commented 4 years ago

That'd be great to have the documentation updated :) Also please tell that the driver doesn't compile in debug.

amznms commented 4 years ago

try this solution: 1) change .props files `

C:\WinDDK\7600.16385.1

` more: https://github.com/aldsondiego/sandboxie/commit/6d6012326f8ee4923dc0b662c33b8983d4674106

2) change .gitignore more : https://github.com/aldsondiego/sandboxie/commit/34f9ffa929793ffdba852254b7c1c217c9739476

3) In VS17 change to SbieRelease and choose Win32 or x64

4) It's possible compile with WinSDK 10.0.17763.0 and toolset v141

TimelifeCzy commented 4 years ago

see: https://github.com/sandboxie/sandboxie/issues/25