[Digikam-devel] [Bug 149485] Advanced image resize for the digikam editor

Carlo Baldassi carlobaldassi at gmail.com
Sun Apr 26 19:39:04 BST 2009


https://bugs.kde.org/show_bug.cgi?id=149485





--- Comment #145 from Carlo Baldassi <carlobaldassi gmail com>  2009-04-26 20:38:54 ---
To Gilles:
no, I don't have MSVC and therefore I only tried with MinGW.
The problem is LQR_PUBLIC as you said, which defines to:
__attribute__((visibility("default")))
which is specific to the gcc compiler I guess. I use that attribute to tell the
compiler that a symbol should be public and hence that it can be used outside
the library, while all symbols are hidden by default (at least this is so with
the configure file shipped with the library).

If someone knows how to achieve the same result with MSVC (and how to detect
such compiler) please tell me (or point me to a web page which explains it, I
could not find one after a quick search).

In the meantime, a quick&dirty solution would be just modifying the file
lqr/lqr_base.h line 29 with something like:

#ifdef MSVC_COMPILER
#define LQR_PUBLIC
#else
#define LQR_PUBLIC __attribute__((visibility("default")))
#endif /* MSVC_COMPILER */

and pass MSVC_COMPILER to the compiler defines.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list