Menu

missing directives in qt.cfg cause unknownMacro

2021-07-07
2021-07-07
  • Dave Ohlsson

    Dave Ohlsson - 2021-07-07

    My environment:
    Ubuntu 18.04
    Cppcheck 2.4.1

    FYI:

    I have experienced the following error in a header generated by Qt's tool uic:

    <error msg="There is an unknown macro here somewhere. Configuration is required. If QT_END_NAMESPACE is a macro then please configure it." verbose="There is an unknown macro here somewhere. Configuration is required. If QT_END_NAMESPACE is a macro then please configure it." id="unknownMacro" severity="error"></error>
    

    I solved the problem by adding the following two lines to qt.cfg:

    <define name="QT_BEGIN_NAMESPACE" value=""/>
    <define name="QT_END_NAMESPACE" value=""/>
    
     
  • Daniel Marjamäki

    thanks I have merged those changes in qt.cfg.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.