'/DYNAMICBASE' not compatible with '/DRIVER' specification; link without '/DYNAMICBASE'

来源:互联网 发布:dns域名服务器简答题 编辑:程序博客网 时间:2024/05/16 07:02

转载自:http://blog.csdn.net/caowei880123/article/details/7992560?locationNum=7


fatal error LNK1295: '/MANIFESTUAC' not compatible with '/DRIVER' specification; li

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)


0 0
原创粉丝点击