Search code examples
visual-studio-2010qtmocqt-vs-addin

How to add specific flags to moc in a vs2010 project?


I'm trying to resolve this bug and a workaround suggested was to pass -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED to moc.exe.

This question is related to mine. The difference is I want to add a MOC flag in a VS2010 project (VS add-in).

I've tried left click -> Qt Project Setting -> MocOptions and adding -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED

Note my problem occurs using boost 1.53.


Solution

  • The solution has been provided yesterday from here

    We need to add -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION to the moc options too.