QStringLiteral was not declared in this scope



  • Hello everyone,
    I am trying to compile a small piece of code which involves the usage of the QStringLiteral library but the compilation always terminates with that error.
    Here are the details :
    QMake version 3.0
    Using QT Version 5.2.1
    QTCreator 3.0.1
    OS : Ubuntu

    I have added CONFIG+=c++11 in the pro file as per the documentation.
    Thanks in advance.



  • That normally happens when you try and compile with Qt4, could you post the code?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.