简体   繁体   English

Qt Creator无法找到c ++比率库?

[英]Qt Creator cannot find c++ ratio library?

I want to use the C++ template Ratio which is exhibited in this example. 我想使用示例中展示的C ++模板Ratio So I included the ratio library in the Qt program I'm writing in the QtCreator IDE, but it cannot find it. 因此,我将ratio库包含在我在QtCreator IDE中编写的Qt程序中,但找不到它。 What should I do to enable the usage of that libary? 我应该怎么做才能启用该库? Do Qt have its own template or function similar to the Ratio template? Qt是否有自己的模板或功能与“ Ratio模板相似?

将以下行添加到您的.pro文件

CONFIG += c++11

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM