Moc missing macro name
-
wrote on 28 Aug 2020, 14:22 last edited by
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.
Thanks -
Hi,
Do you have any custom macro ?
-
wrote on 29 Aug 2020, 05:42 last edited by
Not in the classes he is complaining, but good advice, I will look for them.
-
wrote on 29 Aug 2020, 05:58 last edited by
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 ?
-
wrote on 29 Aug 2020, 16:51 last edited byThis post is deleted!
-
wrote on 30 Aug 2020, 07:45 last edited by
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!
1/7