Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does -Ot flag stand for in Visual Studio 2017?

I am getting error Error C1007 unrecognized flag '-Ot' in 'p2' but unable to find -Ot in the command line string of the project. Googling did not help. Anyone know what does that flag stand for ?

like image 767
Swtsvn Avatar asked Jun 15 '18 16:06

Swtsvn


People also ask

What is black flag in Visual Studio?

It could be a bookmark. See main Visual Studio menu Edit - Bookmarks. Follow this answer to receive notifications.

How do I make Debug mode in Visual Studio?

In Solution Explorer, right-click the project and choose Properties. In the side pane, choose Build (or Compile in Visual Basic). In the Configuration list at the top, choose Debug or Release. Select the Advanced button (or the Advanced Compile Options button in Visual Basic).

What is difference between Debug and release in Visual Studio?

Debug Mode: In debug mode the application will be slow. Release Mode: In release mode the application will be faster. Debug Mode: In the debug mode code, which is under the debug, symbols will be executed. Release Mode: In release mode code, which is under the debug, symbols will not be executed.


1 Answers

Just for future reference to this error msg: I got this error with no -Ot option set, the error message was misleading. Turned out that I tried to build a project with a 140 toolset (VS2015 - forgot to upgrade to 141) with .dll and .lib dependencies already built with 141 (VS2017). After updating the toolset to 141 the project could be built.

like image 94
Hari Avatar answered Sep 28 '22 04:09

Hari