On 02/11/2011 11:21 AM, David C. Rankin wrote:
Tim, Robert,
Looking at the iccconfig.cpp code, the errors are generated after each
KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI::KRandrSimpleAPI(); call.
eg (line numbers mark line specified in error above):
void KICCConfig::load(bool useDefaults )
{
//Update the toggle buttons with the current configuration
int i;
int j;
<snip>
XRROutputInfo *output_info;
KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI::KRandrSimpleAPI();
config->setReadDefaults( useDefaults );
292
Also, the only reference I can find grepping /opt/trinity/include to
KRandrSimpleAPI is in:
libkrandr/libkrandr.h
class KRANDR_EXPORT KRandrSimpleAPI : public RandRDisplay
and... then I get lost :(
From the look of the KRANDR_EXPORT definitions, KRandrSimpleAPI seems to be
the only class that is defined with KRANDR_EXPORT:
grep -r KRANDR_EXPORT /opt/trinity/include/*
kdelibs_export.h:#define KRANDR_EXPORT KDE_EXPORT
libkrandr/libkrandr.h:class KRANDR_EXPORT KRandrSimpleAPI : public RandRDisplay
libkrandr/libkrandr.h:#define KRANDR_EXPORT
libkrandr/libkrandr.h:// KRANDR_EXPORT ScreenInfo* read_screen_info(Display *);
libkrandr/libkrandr.h:// KRANDR_EXPORT int set_screen_size (ScreenInfo
*screen_info);
libkrandr/libkrandr.h:// KRANDR_EXPORT void output_auto (ScreenInfo
*screen_info, OutputInfo *output_info);
libkrandr/libkrandr.h:// KRANDR_EXPORT void output_off(ScreenInfo
*screen_info, OutputInfo *output);
libkrandr/libkrandr.h:// KRANDR_EXPORT CrtcInfo* auto_find_crtc (ScreenInfo
*screen_info, OutputInfo *output_info);
libkrandr/libkrandr.h:// KRANDR_EXPORT XRRModeInfo *find_mode_by_xid
(ScreenInfo *screen_info, RRMode mode_id);
libkrandr/libkrandr.h:// KRANDR_EXPORT int mode_height (XRRModeInfo
*mode_info, Rotation rotation);
libkrandr/libkrandr.h:// KRANDR_EXPORT int mode_width (XRRModeInfo
*mode_info, Rotation rotation);
libkrandr/libkrandr.h:// KRANDR_EXPORT int get_width_by_output_id
(ScreenInfo *screen_info, RROutput output_id);
libkrandr/libkrandr.h:// KRANDR_EXPORT int get_height_by_output_id
(ScreenInfo *screen_info, RROutput output_id);
libkrandr/libkrandr.h:// KRANDR_EXPORT char *get_output_name
(ScreenInfo *screen_info, RROutput id);
libkrandr/libkrandr.h:// KRANDR_EXPORT Status crtc_apply (CrtcInfo
*crtc_info);
libkrandr/libkrandr.h:// KRANDR_EXPORT Status crtc_disable (CrtcInfo *crtc);
libkrandr/libkrandr.h:// KRANDR_EXPORT int main_low_apply (ScreenInfo
*screen_info);
libkrandr/libkrandr.h:// KRANDR_EXPORT bool kRandrHasRandr();
libkrandr/libkrandr.h:KRANDR_EXPORT const char *kRandrVersion(void);
libkrandr/libkrandr.h:KRANDR_EXPORT const char *kRandrCopyright(void);
Is there something wrong in the class KRANDR_EXPORT KRandrSimpleAPI call
that is preventing the expected type specifier for KRandrSimpleAPI from being
seen in iccconfig.cpp with the latest gcc?
--
David C. Rankin, J.D.,P.E.