From kde-optimize Sun Jul 18 20:59:05 2004 From: Karl Vogel Date: Sun, 18 Jul 2004 20:59:05 +0000 To: kde-optimize Subject: More symbol export stuff -- GCC Visibility patch Message-Id: <200407182259.05880.karl.vogel () seagha ! com> X-MARC-Message: https://marc.info/?l=kde-optimize&m=109018432426259 While playing with this symbol stuff.. I noticed that other libs were also exporting way more than needed. For instance... libkateinterfaces has exports for all the private methods & private slots of all the classes it implements. I was able to reduce the symbols by manually adding an attribute to the private parts (source parts.. not the other kind :-) ... ie. #define HIDE __attribute__((visibility ("hidden")) and then.. private: void methodX() HIDE; This worked.. but it seemed strange that there was no better way to do this.. so I put the question to gcc-devel: http://thread.gmane.org/gmane.comp.gcc.devel/51574 Esp. the answer of Giovanni Bajo was interesting, pointing me to this webpage: GCC Symbol Visibility Patch http://www.nedprod.com/programs/gccvisibility.html Reading through the gcc PR issues.. I noticed a familiar name.. so guess some KDE developers are already onto this. Has the dllexport/dlllocal macro as shown on the gcc visibility patch page been considered yet?! (ie. for KDE4 coding style) _______________________________________________ Kde-optimize mailing list Kde-optimize@kde.org https://mail.kde.org/mailman/listinfo/kde-optimize