我有一个公共职能:
void determineAction(QStringList tempL); // in header file
void CompArch::determineAction(QStringList tempL)
{
}
//in cpp file
Run Code Online (Sandbox Code Playgroud)
我收到错误:
CompArch.cpp:127:6: error: ‘tempL’ has incomplete type
/usr/include/qt4/QtCore/qstring.h:77:7: error: forward declaration of ‘struct QStringList’
Run Code Online (Sandbox Code Playgroud)
任何想法为什么会这样.
| 归档时间: |
|
| 查看次数: |
4525 次 |
| 最近记录: |