search

Home  >  Q&A  >  body text

在c++编程运行中,提示变量已被优化不可用这么解决?

PHPzPHPz2807 days ago728

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-17 14:42:09

    When the compiler turned on optimization and compiled again, it found that this variable was not actually used to allocate space, so it optimized it out

    In the project settings, just turn off the optimization switch. .

    reply
    0
  • Cancelreply