Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem while building the project. #1

Open
AnuragOval opened this issue Sep 19, 2018 · 6 comments
Open

Problem while building the project. #1

AnuragOval opened this issue Sep 19, 2018 · 6 comments

Comments

@AnuragOval
Copy link

When I am building the project in vs 2017, the compiler throws error "Empty string not allowed for provider" Code: "1236" and section destinationdirs and sourcediskfiles is defined multiple times at line 5,12 and 27 respectively. Any suggestions will be helpful.

@jenokizm
Copy link

I get the following errors when building:

WFPDriver.obj : error LNK2019: unresolved external symbol FwpsCalloutRegister1 in function register_example_callout
WFPDriver.obj : error LNK2019: unresolved external symbol FwpsCalloutUnregisterById0 in function DriverEntry
WFPDriver.obj : error LNK2019: unresolved external symbol FwpmEngineOpen0 in function DriverEntry
WFPDriver.obj : error LNK2019: unresolved external symbol FwpmEngineClose0 in function DriverUnload
WFPDriver.obj : error LNK2019: unresolved external symbol FwpmTransactionBegin0 in function DriverEntry
WFPDriver.obj : error LNK2019: unresolved external symbol FwpmTransactionCommit0 in function DriverEntry
WFPDriver.obj : error LNK2019: unresolved external symbol FwpmTransactionAbort0 in function DriverEntry
WFPDriver.obj : error LNK2019: unresolved external symbol FwpmSubLayerAdd0 in function register_example_sublayer
WFPDriver.obj : error LNK2019: unresolved external symbol FwpmCalloutAdd0 in function register_example_callout
WFPDriver.obj : error LNK2019: unresolved external symbol FwpmFilterAdd0 in function register_example_filter
WFPDriver.obj : error LNK2019: unresolved external symbol FwpmFilterDeleteById0 in function DriverUnload
WFPDriver.obj : error LNK2001: unresolved external symbol "SDDL_DEVOBJ_SYS_ALL_ADM_ALL"
WFPDriver.obj : error LNK2001: unresolved external symbol "FWPM_LAYER_OUTBOUND_TRANSPORT_V4"

@JaredWright
Copy link
Owner

Sorry it took me so long to see this issue. It appears that Microsoft pushed an update to Visual Studio or the WDK that broke this project. At the moment, I don't have a suitable windows development environment to try and fix this problem, sorry.

One temporary solution might be to start a new WDK project using the latest version of the WDK and Visual Studio, and then copy the source files from this project into the new one manually.

@jenokizm
Copy link

@JaredWright, ok man, Happy New Year!
with all the difficulties I compiled. it seems to work, although it seemed to me at some point the network connections worked unstably or there was a partial blocking .. I will check it again, but I have one question - how do you not know how to block websites by URL?

@keisentraut
Copy link

@jenokizm: I had similiar errors like above while trying to compile it in an empty KMDF project in Visual Studio 2017. The simple solution was to include $(DDK_LIB_PATH)wdmsec.lib and $(DDK_LIB_PATH)fwpkclnt.lib in "Linker -> Input -> Additional Dependencies", afterwards it worked fine. Then it compiled fine on Windows 10 (but you need to use a correct WDK / SDK combination, too).

image

@apmattil
Copy link

I got this also working with vs2019 at win10 and osr driver loader.
I could make pull request but I have no way to test older windows versions.
should I make it ?
perhaps a branch for vs2019+win10 ?

@JaredWright
Copy link
Owner

@apmattil I would gladly accept a pull request that brings this repository up to compatibility with VS2019 and win10! I would imagine that people will benefit more from having this repository compatible with a newer toolchain, than having this repository compatible with older toolchains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants