Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Moc missing macro name
Hi, I've imported a project, fix a couple of libraries missing. Compiled and at the end an error appear:
moc: Missing macro name
Usage: C:\Qt\5.9.9\msvc2017_64\bin\moc.exe [options] [header-file] [@option-file]
Qt Meta Object Compiler version 67 (Qt 5.9.9)
I've tried to google it, but no hints. Do you have an Idea fo what could be wrong. Classes seems to be ok.
Do you have any custom macro ?
Not in the classes he is complaining, but good advice, I will look for them.
One hint: the project compiles if I use Visual Studio with Qt add ons. When I try to compile it in QtCreator if gives missing macro name and no moc are generated at all.
Can you share your .pro file ?
This post is deleted!
Hi, thanks. Solved it. Actually in the .pro file I had a macro definition with assignment, and the assignment value was not known. I substitute it with a int value and everything was back ok!