I am trying to set the following switches for MSC9 build
-DataExecutionPrevention:0
-RandomizedBaseAddress:1
-FixedBaseAddress:2
I tried all three on "Setup/Build Methods" - MSC9,Optimize for Speed field which only accepted -DataExecutionPrevention:0
The -RandomizedBaseAddress:1 and -FixedBaseAddress:2 switches returned errors on the Optimize fields
and the "Release Flags" and "Release Link" fields.
i.e.
LINK : warning LNK4044: unrecognized option '/RandomizedBaseAddress:0'; ignored
LINK : warning LNK4044: unrecognized option '/FixedBaseAddress:0'; ignored
I am using the provided "Puzzle" example.
Can you help please?
tojocky Messages: 607 Registered: April 2008 Location: UK
Contributor
Maybe this is correct?
-DDataExecutionPrevention:0
-DRandomizedBaseAddress:1
-DFixedBaseAddress:2
you need to add "D" prefix if you want to pass as flag.
klrkt wrote on Mon, 10 May 2010 20:18
I am trying to set the following switches for MSC9 build
-DataExecutionPrevention:0
-RandomizedBaseAddress:1
-FixedBaseAddress:2
I tried all three on "Setup/Build Methods" - MSC9,Optimize for Speed field which only accepted -DataExecutionPrevention:0
The -RandomizedBaseAddress:1 and -FixedBaseAddress:2 switches returned errors on the Optimize fields
and the "Release Flags" and "Release Link" fields.
i.e.
LINK : warning LNK4044: unrecognized option '/RandomizedBaseAddress:0'; ignored
LINK : warning LNK4044: unrecognized option '/FixedBaseAddress:0'; ignored
I am using the provided "Puzzle" example.
Can you help please?
Thanks for trying to help - I tried your suggestion - but no luck.
LINK : warning LNK4044: unrecognized option '/DRandomizedBaseAddress:0'; ignored
LINK : warning LNK4044: unrecognized option '/DFixedBaseAddress:0'; ignored
It could be a syntax issue, but it beats me.
I tried cl /? and link /? at command line, and indeed the above are not command line options.
VisualStudio uses "VTOOL" - which supports the above options.
Anyone know how VTOOL translates these options to the compiler?
ALTERNATELY:
anyone know how to set these values in code?