You have to link device drivers without a manifest.
how to fix:
Project + Properties, Linker, Manifest, Generate = No.
fatal error LNK1295: '/DYNAMICBASE' not compatible with '/DRIVER' specification; link without '/DYNAMICBASE'
how to fix:
Under Project/Properties/Configuration Properties/Linker/Advanced
Click on "Randomized Base Address" and select "Default"(default is "Enable Image Randomization")
from the drop-down box.
Click "Apply/OK"
fatal error LNK1295: '/NXCOMPAT:NO' not compatible with '/DRIVER' specification; link without '/NXCOMPAT:NO'
how to fix:
Under Project/Properties/Configuration Properties/Linker/Advanced
Click on "Data Execution Prevention" and select "Default"(default is "Image is not compatible with DEP (/NXCOMPAT:NO)")
from the drop-down box.
Click "Apply/OK"
BTW, compiling driver source code need to set: Native (/SUBSYSTEM:NATIVE)
本文介绍了如何解决在设备驱动程序编译过程中遇到的LNK1295错误,包括'/MANIFESTUAC', '/DYNAMICBASE' 和 '/NXCOMPAT:NO'不兼容的问题,并提供了详细的步骤。
3687

被折叠的 条评论
为什么被折叠?



