[英]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.