trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: October 2012

Re: [trinity-devel] Tim: Commit f209ff4b, et. al. breaks tdebindings

From: "Timothy Pearson" <kb9vqf@...>
Date: Sat, 20 Oct 2012 18:06:26 -0500
> I built my normal package set on Oct. 15. Today I can't. My local tree is
> current.
>
> The failure messages with tdebindings:
>
> x_16.cpp:5632: error: ISO C++ forbids initialization in array new
> x_16.cpp:5632: error: no matching function for call to
> 'TQStyleControlElementGenericWidgetData::TQStyleControlElementGenericWidgetData(TQStyleControlElementGenericWidgetData
> [4])'
> x_16.cpp:5656: error: expected primary-expression before '[' token
> x_16.cpp:5656: error: expected primary-expression before ')' token
> x_16.cpp:5656: error: expected ';' before 'x'
>
> Looking at the commits since Oct. 15 I see f209ff4b, which has code that
> matches the failure messages.
>
> x_16.cpp, which is generated during the build, has #include <ntqstyle.h>.
>
> After rebuilding tqt3, /opt/trinity/include/ntqstyle.h includes class
> TQStyleControlElementGenericWidgetData.
>
> How do we fix?
>
> Darrell

Apparently smoke does not understand arrays, so I have simply hidden the
array definition from smoke in a recent GIT commit to qt3/tqt3.  This hack
should not be a problem as widget styles are not intended to be written in
a non-C/C++ language.

Tim