Wednesday, October 06, 2010

Making Qt Creator 2.0.1 ignore __attribute__((packed))

What brought you here is that you are annoyed by the fact that Qt Creator does not recognize types, declared with GCC __attribute__() extension syntax. It is an easily fixed issue though, which I have also sent a comment about in Qt Creators JIRA(http://bugreports.qt.nokia.com/browse/QTCREATORBUG-1358?focusedCommentId=128773&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_128773). To overcome it, simply add the following to your project's .config file:

#define __attribute__(spec)

At which point the Qt Creator should re-parse your project and update code database. You might have to close then open currently loaded documents, though.

No comments: