[PATCH] fix kdeumultimedia/arts/builder compilation with --enable-final
David Faure
david at mandrakesoft.com
Thu Jul 11 09:13:56 BST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 11 July 2002 06:57, fenix wrote:
>
> Hi,
> i got this error when compiling arts/builder with -enable-final:
>
> <snip>
> structure.cpp:230: warning: unused parameter `const char*pubname'
> In file included from artsbuilder.all_cpp.cpp:7:
> retrievedlg.cpp: In constructor `RetrieveDlg::RetrieveDlg(QWidget*)':
> retrievedlg.cpp:59: `min_size' undeclared (first use this function)
> retrievedlg.cpp:59: (Each undeclared identifier is reported only once
> for each function it appears in.)
> In file included from artsbuilder.all_cpp.cpp:8:
> <snip>
> execdlg.cpp: In constructor `ExecDlg::ExecDlg(QWidget*,
> ExecutableStructure*)':
> execdlg.cpp:67: `min_size' undeclared (first use this function)
> execdlg.cpp:67: (Each undeclared identifier is reported only once for
> each function it appears in.)
> <snip>
>
> this error happened because 'min_size' is only defined in non-kde final
> as seen:
>
> #ifndef KDE_USE_FINAL
> static void min_size(QWidget *w) {
> w->setMinimumSize(w->sizeHint());
> }
> #endif
This usually means, some other file, that is before in the list of sources,
defines min_size already. Apparently this isn't the case anymore -> find
out why. Uncomment the first min_size definition.
> I have only put use of 'min_size' in #ifndef/#endif
Completely wrong, of course.....
- --
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2-beta2 is out! http://dot.kde.org/1025176121/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9LT5E72KcVAmwbhARAmq4AJ4x/YykLCoVE6TIvSTGZPWIm7ECkQCghXz4
rIwp/g3fq+ZlnY36J2cLELk=
=RW4F
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list