I have a public function:
void determineAction(QStringList tempL); // in header file
void CompArch::determineAction(QStringList tempL)
{
}
//in cpp file
I get the error:
CompArch.cpp:127:6: error: ‘tempL’ has incomplete type
/usr/include/qt4/QtCore/qstring.h:77:7: error: forward declaration of ‘struct QStringList’
any ideas why this might be.
add
#include <QStringList>to the top of your .cpp file. Incomplete type means that your class (QStringList) has already been named before, using foward declaration, but the content of it has not been declared.