According to comment pragma
Only the following (comment-type) linker options are available to be passed to the linker identifier:
/DEFAULTLIB
/EXPORT
/INCLUDE
/MANIFESTDEPENDENCY
/MERGE
/SECTION
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to set this linker option in my C++ file, using the normal method. This looks right to me at least:
#pragma comment(linker, "/MANIFESTUAC:NO")
But it's not working. I get:
warning LNK4229: invalid directive '/MANIFESTUAC:NO' encountered; ignored
Is there some way to do this with a #pragma, or do I have to do this through other means (I know it'll work if I set it through the Visual Studio GUI, but I like to put these options in the code file, so they're apparent to anyone who comes along and tries to compile my project).
According to comment pragma
Only the following (comment-type) linker options are available to be passed to the linker identifier:
/DEFAULTLIB
/EXPORT
/INCLUDE
/MANIFESTDEPENDENCY
/MERGE
/SECTION