DRAFT document on coding conventions in kde libraries

Thiago Macieira thiago at kde.org
Mon Mar 6 21:17:00 GMT 2006


Frerich Raabe wrote:
>On Monday 06 March 2006 16:45, Thiago Macieira wrote:
>> that's weird...
>
>Not at all: http://www.trilithium.com/johan/2004/12/problem-with-dlsym/

Interesting. I compiled the test on:
gcc version 4.0.3 (4.0.3-0.20060215.2mdk for Mandriva Linux release 
2006.1)

and it gave me no errors or warnings.

However, trying the same on an Itanium machine:

$ gcc -o /dev/null -c /tmp/test.cpp
/tmp/test.cpp: In function `int main()':
/tmp/test.cpp:9: error: ISO C++ forbids casting between 
pointer-to-function and pointer-to-object
/tmp/test.cpp:10: error: ISO C++ forbids casting between 
pointer-to-function and pointer-to-object

There you go, the errors you mentioned. Newer gcc? Not so.

gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

1. On frumscafte, hwonne time_t wæs náht, se scieppend þone circolwyrde 
wundorcræftlíge cennede and seo eorðe wæs idel and hit wæs gód.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060306/da825d90/attachment.sig>


More information about the kde-core-devel mailing list