Download

NDIS_MINIPORT_MAJOR_VERSION' is not defined error.

I had a project in 4.21.0, and tried to update it to 4.24.0. I installed VS 2019 and followed a bunch of steps to get the new engine working, to find out that a plugin my project uses was not updated yet, so I decided to return to version 4.21.0. I immediately started getting the errors:
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(7): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(13): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(19): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(25): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(31): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(37): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(43): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(49): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(55): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(61): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(67): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(73): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(79): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif

and

4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(7): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(13): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(19): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(25): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(31): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(37): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(43): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(49): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(55): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(61): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(67): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(73): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
4>C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
dis/version.h(79): error C4668: ‘NDIS_MINIPORT_MAJOR_VERSION’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif

I went to my BuildTool config file and forced it to use the Visual Studio 2017 14.16.27023 toolchain. I still get the same error. I don’t understand, the same project just worked fine, I can compile in editor, what could be wrong?

Try uninstalling VS 2019 and just do the compilation with VS 2017. That should work

Hi I am having the same issue. I already uninstalled VS19 and installed VS17. But I still get that error :frowning: I am trying to build 4.21 from source (0lentos branch). Do you have any suggestions?