Build problem?

Lubomir I. Ivanov neolit123 at gmail.com
Tue Apr 9 02:38:11 PDT 2013


On 8 April 2013 23:48, Thiago Macieira <thiago at macieira.org> wrote:
> On segunda-feira, 8 de abril de 2013 21.15.21, Amit Chaudhuri wrote:
>> qt-ui/mainwindow.h:23:8: error: expected ‘:’ before ‘slots’
>> qt-ui/mainwindow.h:23:8: error: ‘slots’ does not name a type
>> make: *** [qt-gui.o] Error 1
>> amit at linux-erag:~/subsurface>
>>
>> Somehow I think the rules need to ensure that the mainwindow moc-ing happens
>> before the attempt to include in qt-gui...
>
> This error is not caused by the moc output.
>
> We have this in the Makefile:
>
> CXXFLAGS=-Wall -g $(CLCFLAGS) -fPIC -DQT_NO_KEYWORDS
>
> commit b5b14f1d95b0362a13fa3f11ac3f334012750099
> Author: Alberto Mardegan <mardy at users.sourceforge.net>
> Date:   Mon Apr 1 23:03:47 2013 +0300
>
>     Define QT_NO_KEYWORDS
>
>     This prevents Qt headers from defining macro symbols such as "emit" and
>     "signals", therefore avoiding conflicts when struct members with the
>     same names are defined in some C header.
>
>     Signed-off-by: Alberto Mardegan <mardy at users.sourceforge.net>
>
>
> You'll need to write Q_SLOTS instead of slots.
>
> I'd like to drop that macro. It makes the code uglier in my opinion. Alberto,
> did you find any conflicts?
>

i don't think there are any conflicts at this point?
grep doesn't find usage of emit and signals as struct members.

lubomir
--


More information about the subsurface mailing list