[Qt-embedded-interest] __builtin_exit and qt-embedded-4.5.0

Carlos Becker carlosbecker at gmail.com
Fri Mar 6 22:24:06 CET 2009


Hi everyone.

I downloaded qt-embedded-opensource  4.5.0 for linux and tried compiling it
the same way I did with 4.4.3 but found a link problem with __builtin_exit()
when the configure script tried to compile the examples.

I grepped through qt's code and found __builtin_exit() in
src/corelib/global/qlibraryinfo.cpp. This is different from 4.4.3. In order
to avoid this error I modified qlibraryinfo.cpp by commenting the line:

--> #define sysexit(c) __builtin_exit(c)

by --> #define sysexit(c) exit(c)

Of course, I had to include <stddef.h> at the top.

Maybe the configure script should try to compile an example with
__builtin_exit(x) to determine if it's available or not, and if it's not
available a proper macro should be defined so that the simple exit()
function is used instead. I'm using arm-linux-g++ 3.3.2, I guess there could
be some problems since __builtin_exit() should work.

Regards,

Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-embedded-interest/attachments/20090306/02ece8a0/attachment.html 


More information about the Qt-embedded-interest mailing list