Results 1 to 2 of 2

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

  1. #1
    Join Date
    Jun 2010
    Posts
    3
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default a header file is locked and can't edited after I compile my project.

    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>

    Qt Code:
    1. #include <list>
    To copy to clipboard, switch view to plain text mode 

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

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: a header file is locked and can't edited after I compile my project.

    let me guess, you have something like
    Qt Code:
    1. list myList;
    To copy to clipboard, switch view to plain text mode 
    in your code, but you have to write
    Qt Code:
    1. list<PutHereTheTypeYouWant> myList;
    2. //Example
    3. list<int> myIntList;
    To copy to clipboard, switch view to plain text mode 

  3. The following user says thank you to Lykurg for this useful post:

    binbin (1st June 2010)

Similar Threads

  1. help,who could help me to compile qt project
    By derekli in forum Qt Programming
    Replies: 3
    Last Post: 13th May 2014, 15:27
  2. Replies: 1
    Last Post: 3rd December 2009, 23:34
  3. compile to arm+include header
    By nataly in forum Qt Programming
    Replies: 1
    Last Post: 8th November 2009, 12:59
  4. qmake: add to project but do not compile
    By jesse in forum Newbie
    Replies: 2
    Last Post: 8th November 2007, 16:03
  5. Removing locked attribute on Mac locked files?
    By gfunk in forum Qt Programming
    Replies: 1
    Last Post: 26th October 2007, 22:40

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.