[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Internatinalization error: i18n was not declared in the scope.
From:       Thomas_Lübking <thomas.luebking () gmail ! com>
Date:       2015-01-27 15:46:13
Message-ID: 42ecb03e-d0fc-407e-b5de-6f0753e6fa40 () gmail ! com
[Download RAW message or body]

On Dienstag, 27. Januar 2015 16:42:49 CEST, anu mittal wrote:
> It then says
> error: no matching function for call to ‘QMessageBox::warning(int, QString)'
> QMessageBox::warning(0,i18n("
> Cannot save to the specified file."));

Not during compilation, but on configuration.
If you add those lines to CMakeLists.txt, the lib and headers are searched on disk \
and if not found, the configuration step exits with an error, what basically means \
that the KLocalizedString frameworks module is simply not installed in the target \
(include+link) path.

As a result the header inclusion
#include <klocalizedstring.h>
fails and ultimately the function is of course not found.

Cheers,
Thomas

> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic