PDA

View Full Version : a header file is locked and can't edited after I compile my project.



binbin
1st June 2010, 07:56
I'm facing the program as bellow.

in ubuntu ,qt4.6 platform.

I download an open-source project with QT gui, I open the project with QT creator,after I compiled the project, error occur.
as bellow:
a header file named "config.h", the error message is ISO C++ forbids declaration of 'list' with no type
/home/share/trunk/config.h

I don't know what to do it.
the file 'config.h' have include <list>


#include <list>

why? is the list library not in IOS C++ library? the QT4 don't surport it now?

Lykurg
1st June 2010, 08:05
let me guess, you have something like
list myList;in your code, but you have to write
list<PutHereTheTypeYouWant> myList;
//Example
list<int> myIntList;