how can i turn off the "/gs" flag ?  
Author Message
mystic-d





PostPosted: Visual C++ General, how can i turn off the "/gs" flag ? Top

i hope im in the right forum..

im using MSVC++6 and i want to turn off the /GS flag, how can i do this
thanks !



Visual C++9  
 
 
Holger Grund





PostPosted: Visual C++ General, how can i turn off the "/gs" flag ? Top

I'm afraid I don't quite understand your question. Are you talking about the security checks feature I'm fairly certain, VC 6 didn't support it at all. So there's nothing you need to do. On more recent versions you can turn off the option with /GS-.

-hg


 
 
mystic-d





PostPosted: Visual C++ General, how can i turn off the "/gs" flag ? Top

im so sure that VC6 is not support this option..

where did i need to write it in my program i mean after the "include..." and before the "int main()" or where

and what is the syntax

thanks !



 
 
Holger Grund





PostPosted: Visual C++ General, how can i turn off the "/gs" flag ? Top

Umh, I'm certain you know that already, but obviously /GS or /GS- are command line options that are passed to the compiler driver (cl.exe) on the command line. You can always look these up in the index of MSDN Library to find the corresponding setting in the IDE.

So, it is nothing you would do in the source code.

Are you sure you mean /GS (and not /Gs) There's probably a corresponding pragma for the latter.

-hg