Jump to content

Error C1007 unrecognized flag '-Zc:nrvo' in 'p2'


sdxsdx
 Share

Go to solution Solved by Josh,

Recommended Posts

When I start a new project, I got this error message;

Severity    Code    Description    Project    File    Line    Suppression State
Error    C1007    unrecognized flag '-Zc:nrvo' in 'p2'    test    C:\Users\xxx\Documents\Ultra Engine\Projects\test\LINK    1    
 

I have tried 1.0,1.01.1.02,1.03 all versions. and the results are same.

visual studio 2022,2019 are same too.

111.png

Link to comment
Share on other sites

  • 2 months later...
  • Solution

It sounds like maybe the wrong toolkit is installed?:

https://learn.microsoft.com/en-us/answers/questions/1130957/link-fatal-error-c1007-unrecognized-flag-zc-nrvo-i

Quote

 

Libraries built with a later toolset was the problem. I changed all the compiler toolsets back to v14.2 (from 14.3), rebuilt the libraries, and now the linker doesn't get any error.

The "guidance regarding binary compatibility" page was also useful.

 

My Windows SDK version is 10.0, platform toolset is 143.

Untitled.thumb.png.74b7a671246b6423b7b0adac1a0858e1.png

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • Josh locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...